From 8b29381699043f85f207f7e92a59ba80bb744f15 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sat, 4 Apr 2009 14:51:27 +0000 Subject: [PATCH] After changing screen size or pixel mode, the palette is now scrolled to show FG color (issue 124) git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@718 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- buttons.c | 2 ++ engine.c | 1 + 2 files changed, 3 insertions(+) diff --git a/buttons.c b/buttons.c index 6da6bdf7..f6bc1201 100644 --- a/buttons.c +++ b/buttons.c @@ -1655,6 +1655,7 @@ void Button_Resolution(void) } Display_menu(); + Reposition_palette(); Display_all_screen(); } Paintbrush_X = Mouse_X; @@ -1674,6 +1675,7 @@ void Button_Safety_resolution(void) Init_mode_video(640, 400, 0,PIXEL_SIMPLE); Current_resolution=0; Display_menu(); + Reposition_palette(); Display_all_screen(); Unselect_bouton(BUTTON_RESOL); diff --git a/engine.c b/engine.c index c2bd1c81..a2beadc5 100644 --- a/engine.c +++ b/engine.c @@ -526,6 +526,7 @@ void Main_handler(void) Init_mode_video(Resize_width, Resize_height, 0, Pixel_ratio); // Remise à zero des variables indiquant le Redimensionnement demandé Display_menu(); + Reposition_palette(); Display_all_screen(); Display_cursor(); }