fixed redrawing level (set) info icons when using color template
authorHolger Schemel <holger.schemel@virtion.de>
Wed, 27 Nov 2024 18:39:25 +0000 (19:39 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Wed, 27 Nov 2024 16:41:30 +0000 (17:41 +0100)
src/screens.c

index 11a24ddc3be35a31ff286ac1c18cdec573f89ae4..093a3a888757b47e7114a5302d3cd3d384cdeaf3 100644 (file)
@@ -2577,7 +2577,12 @@ static void HandleMainMenu_SelectLevel(int step, int direction,
 
     SaveLevelSetup_SeriesInfo();
 
+    // when using icon graphics with color template, icons must be redrawn for each level
+    UpdateScreenMenuGadgets(SCREEN_MASK_MAIN_HAS_SOLUTION, FALSE);
     UpdateScreenMenuGadgets(SCREEN_MASK_MAIN_HAS_SOLUTION, hasSolutionTape());
+    UpdateScreenMenuGadgets(SCREEN_MASK_MAIN_HAS_LEVELSET_INFO, FALSE);
+    UpdateScreenMenuGadgets(SCREEN_MASK_MAIN_HAS_LEVELSET_INFO, hasLevelSetInfo(FALSE));
+    UpdateScreenMenuGadgets(SCREEN_MASK_MAIN_HAS_LEVEL_INFO, FALSE);
     UpdateScreenMenuGadgets(SCREEN_MASK_MAIN_HAS_LEVEL_INFO, hasLevelInfo(FALSE));
 
     // force redraw of playfield area (may be reset at this point)