From: Holger Schemel Date: Sat, 18 Feb 2023 16:55:08 +0000 (+0100) Subject: added unmapping (invisible) scrollbar gadgets on info sub-screens X-Git-Tag: 4.3.5.1~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=487e1b8ecea9121a3408e5d4f968945e071aa4aa;p=rocksndiamonds.git added unmapping (invisible) scrollbar gadgets on info sub-screens Scrollbars and scrollbar up and down buttons were always invisible on info sub-screens, but could be made visible by blindly clicking on them if the game window was customized to a small enough height that the main info screen had a scrollbar and scroll buttons (which were then not removed again on the info sub-screens, which generally never have scrollbars and scroll buttons). --- diff --git a/src/screens.c b/src/screens.c index 15dc1a73..d10b95d1 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3268,6 +3268,8 @@ static void DrawInfoScreen_TitleScreen(void) { SetGameStatus(GAME_MODE_TITLE); + UnmapAllGadgets(); + DrawTitleScreen(); } @@ -3280,6 +3282,7 @@ static void DrawInfoScreen_Elements(void) { SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_ELEMENTS); + UnmapAllGadgets(); FadeInfoSoundsAndMusic(); FadeOut(REDRAW_FIELD); @@ -3382,6 +3385,8 @@ static void DrawInfoScreen_Music(void) { SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_MUSIC); + UnmapAllGadgets(); + FadeOut(REDRAW_FIELD); ClearField(); @@ -3591,6 +3596,7 @@ static void DrawInfoScreen_Version(void) SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_VERSION); + UnmapAllGadgets(); FadeInfoSoundsAndMusic(); FadeOut(REDRAW_FIELD); @@ -3892,6 +3898,7 @@ static void DrawInfoScreen_Generic(void) { SetMainBackgroundImageIfDefined(getInfoScreenBackgroundImage_Generic()); + UnmapAllGadgets(); FadeInfoSoundsAndMusic(); FadeOut(REDRAW_FIELD);