From 0d646e8efff05808320573b3353ae0682ef592ef Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 8 Jun 2019 12:22:18 +0200 Subject: [PATCH] fix palette color cursor update http://pulkomandy.tk/projects/GrafX2/ticket/100 --- src/windows.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/windows.c b/src/windows.c index 6e57156b..ac7fe834 100644 --- a/src/windows.c +++ b/src/windows.c @@ -319,8 +319,6 @@ void Frame_menu_color(byte id) Block(start_x + cw / 2, start_y + ch / 2, (cw+1) / 2, (ch+1) / 2, MC_Dark); } - - Update_rect(start_x,start_y,Menu_palette_cell_width*Menu_factor_X,cell_height*Menu_factor_Y); } else { @@ -349,9 +347,8 @@ void Frame_menu_color(byte id) Block(start_x+index*Menu_factor_X,start_y+end_y*Menu_factor_Y, Menu_factor_X,Menu_factor_Y, ((index+end_y)&1)?color:MC_Black); - - Update_rect(start_x*Menu_factor_X,start_y*Menu_factor_Y,Menu_palette_cell_width*Menu_factor_X,Menu_Y+cell_height*Menu_factor_Y); } + Update_rect(start_x,start_y,Menu_palette_cell_width*Menu_factor_X,cell_height*Menu_factor_Y); } } }