From 02ecd8d29d71ec278800dafb59d2076d94971390 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Thu, 14 Apr 2011 19:43:16 +0000 Subject: [PATCH] Fix issue 432: Options/Input: Missing graphic update after changing a numeric value git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1778 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/buttons.c | 1 + src/windows.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/buttons.c b/src/buttons.c index 0f22a734..c72f6fb1 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -898,6 +898,7 @@ void Settings_display_config(T_Setting *setting, T_Config * conf, T_Special_butt } } } + Update_window_area(panel->Pos_X, panel->Pos_Y, panel->Width, panel->Height+1); } void Settings_save_config(T_Config * conf) diff --git a/src/windows.c b/src/windows.c index a0af70bb..06f38b33 100644 --- a/src/windows.c +++ b/src/windows.c @@ -698,6 +698,10 @@ void Print_in_menu(const char * str, short position) { Print_general((18+(position<<3))*Menu_factor_X,Menu_status_Y,str,MC_Black,MC_Light); Update_rect((18+(position<<3))*Menu_factor_X,Menu_status_Y,strlen(str)*8*Menu_factor_X,8*Menu_factor_Y); + // Might want to replace the above by: + // SDL_UpdateRect(Screen_SDL, (18+(position<<3))*Menu_factor_X*Pixel_width,Menu_status_Y*Pixel_height,strlen(str)*8*Menu_factor_X*Pixel_width,8*Menu_factor_Y*Pixel_height); + // It can divide by 1000 the amount of pixels that are refreshed + // when you draw in top right of image. } /// Draws the mouse coordinates on the menu