From 8c5e4fa7305d8bd170b3533db20d87fb9c09b04b Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Mon, 7 Jun 2010 19:31:31 +0000 Subject: [PATCH] Refresh menu correctly after loading skin: Restore multi-state buttons, which buttons are highlighted, and current paintbrush in top left icon. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1499 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/buttons.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/buttons.c b/src/buttons.c index 40ce76d9..371e9cc2 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -1258,7 +1258,8 @@ void Button_Skins(void) byte separatecolors = Config.Separate_colors; byte showlimits = Config.Display_image_limits; byte need_load=1; - + int button; + word x, y, x_pos, offs_y; char * cursors[] = { "Solid", "Transparent", "Thin" }; @@ -1485,6 +1486,22 @@ void Button_Skins(void) // Raffichage du menu pour que les inscriptions qui y figurent soient retracées avec la nouvelle fonte Display_menu(); + // Redraw all buttons, to ensure all specific sprites are in place. + // This is necessary for multi-state buttons, for example Freehand. + for (button=0; button