fixed background image on score info page after playing score tape
[rocksndiamonds.git] / src / screens.c
index 4df8f4d97aca18b38c86cab769129e83a58fad8a..5ffd3409e36d5c2251ae130c99cbc5c7c7042aea 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,14 @@ static void DrawScoreInfo(int entry_nr)
   // needed if different viewport properties defined after playing score tape
   ChangeViewportPropertiesIfNeeded();
 
+  // set this after "ChangeViewportPropertiesIfNeeded()" (which may reset it)
+  SetDrawDeactivationMask(REDRAW_NONE);
+  SetDrawBackgroundMask(REDRAW_FIELD);
+
+  // 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