fixed setting background image on score info page
authorHolger Schemel <info@artsoft.org>
Tue, 12 Apr 2022 21:06:37 +0000 (23:06 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 12 Apr 2022 21:06:37 +0000 (23:06 +0200)
src/screens.c

index 4df8f4d97aca18b38c86cab769129e83a58fad8a..6a0920abc33d31c726d73e5c90ba3b151478166e 100644 (file)
@@ -5526,8 +5526,6 @@ static void DrawScoreInfo(int entry_nr)
   scores.last_entry_nr = entry_nr;
   score_info_tape_play = FALSE;
 
-  SetMainBackgroundImageIfDefined(IMG_BACKGROUND_SCOREINFO);
-
   UnmapAllGadgets();
 
   FadeOut(REDRAW_FIELD);
@@ -5535,6 +5533,10 @@ static void DrawScoreInfo(int entry_nr)
   // needed if different viewport properties defined after playing score tape
   ChangeViewportPropertiesIfNeeded();
 
+  // needed if different background image defined after playing score tape
+  SetMainBackgroundImage(IMG_BACKGROUND_SCORES);
+  SetMainBackgroundImageIfDefined(IMG_BACKGROUND_SCOREINFO);
+
   DrawScoreInfo_Content(entry_nr);
 
   // map gadgets for score info screen