fixed broken scrollbar in hall of fame after playing with small graphics
authorHolger Schemel <holger.schemel@virtion.de>
Wed, 26 Jun 2024 09:41:26 +0000 (11:41 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Wed, 26 Jun 2024 09:41:29 +0000 (11:41 +0200)
src/screens.c

index 1708a0e7235136e294f298de9953ba053aedb9d2..e52fbea6c2158130cd8b0d5e175db8284d4d17d0 100644 (file)
@@ -4715,9 +4715,6 @@ static void DrawChooseTree(TreeInfo **ti_ptr)
 
   UnmapAllGadgets();
 
-  FreeScreenGadgets();
-  CreateScreenGadgets();
-
   if (restart_music)
     FadeMenuSoundsAndMusic();
 
@@ -4735,6 +4732,9 @@ static void DrawChooseTree(TreeInfo **ti_ptr)
   else if (game_status == GAME_MODE_SCORES)
     SetMainBackgroundImage(IMG_BACKGROUND_SCORES);
 
+  FreeScreenGadgets();
+  CreateScreenGadgets();
+
   ClearField();
 
   OpenDoor(GetDoorState() | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);