From: hgn Date: Wed, 13 Sep 2023 05:21:50 +0000 (+0100) Subject: small refactors X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=commitdiff_plain;h=7c3a4ae26aa3fd706ac61445dce243b542103e12 small refactors --- diff --git a/vg_imgui.h b/vg_imgui.h index 6e8537c..b95e314 100644 --- a/vg_imgui.h +++ b/vg_imgui.h @@ -984,12 +984,11 @@ static void ui_standard_widget( ui_rect inout_panel, ui_rect out_rect, out_rect, inout_panel ); } - static void ui_image( ui_rect rect, GLuint image ){ ui_flush( k_ui_shader_colour ); glActiveTexture( GL_TEXTURE0 ); glBindTexture( GL_TEXTURE_2D, image ); - ui_fill_rect( rect, 0xffffffff, (ui_px[4]){ 0,128, 128, 0 } ); + ui_fill_rect( rect, 0xffffffff, (ui_px[4]){ 0,256,256,0 } ); ui_flush( k_ui_shader_image ); } diff --git a/vg_input.h b/vg_input.h index 6b8cd79..ecf2432 100644 --- a/vg_input.h +++ b/vg_input.h @@ -9,8 +9,7 @@ VG_STATIC float controller_deadzone = 0.05f; -struct -{ +struct{ const u8 *sdl_keys; struct vg_controller{