From 3e0b1b5c1c06cc561bfa22aa4c866b7114376a72 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Wed, 6 May 2009 18:54:26 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20in=20Palette=20screen=20the=20refresh=20o?= =?UTF-8?q?f=20enabled/disabled=20"+"=20and=20"-"=20buttons.=20Fix=20in=20?= =?UTF-8?q?Secondary=20palette=20screen=20the=20initial=20refresh=20when?= =?UTF-8?q?=20the=20window=20opens.=20Changed=20in=20Secondary=20palette?= =?UTF-8?q?=20the=20button=20"/2"=20into=20"=C3=B72"=20(like=20in=20Spray?= =?UTF-8?q?=20menu)=20Fix=20in=20Secondary=20palette:=20Clicking=20the=20R?= =?UTF-8?q?GB=20scale=20slider=20could=20display=20the=20new=20value=20ove?= =?UTF-8?q?r=20the=20mouse=20cursor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@782 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- palette.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/palette.c b/palette.c index 3283da1d..16bc542f 100644 --- a/palette.c +++ b/palette.c @@ -883,7 +883,7 @@ void Button_Palette(void) Draw_thingumajig(263,165,MC_Dark,-1); Draw_thingumajig(280,165,MC_Dark,+1); - Update_rect(Window_pos_X,Window_pos_Y,299*Menu_factor_X,188*Menu_factor_Y); + Update_window_area(0,0,299,188); Display_cursor(); @@ -1842,7 +1842,7 @@ void Button_Palette(void) Window_draw_normal_bouton(266,165,12,11,"-",0,1); } Display_sliders(red_slider,green_slider,blue_slider,(block_start!=block_end),working_palette); - Update_window_area(266,74,103,11); + Update_window_area(265,73,14,103); break; case 25 : // Sort palette @@ -2193,9 +2193,9 @@ void Button_Secondary_palette(void) Print_in_window(51,108,"Vertical",MC_Dark,MC_Light); Window_set_normal_button(152,88,18,14,"x2" , 1,1,SDLK_x); // 9 - Window_set_normal_button(172,88,18,14,"/2" , 0,1,SDLK_w); // 10 + Window_set_normal_button(172,88,18,14,"÷2" , 0,1,SDLK_w); // 10 - Update_rect(Window_pos_X,Window_pos_Y,Menu_factor_X*200,Menu_factor_Y*80); + Update_window_area(0,0,200,146); Display_cursor(); @@ -2221,7 +2221,9 @@ void Button_Secondary_palette(void) break; case 7: // RGB scale slider + Hide_cursor(); Num2str(256-Window_attribute2,str,3); + Display_cursor(); Print_in_window(157,78,str,MC_Black,MC_Light); break; case 8: