fixed changing viewport properties not before fading out last screen
authorHolger Schemel <info@artsoft.org>
Tue, 31 May 2016 18:42:05 +0000 (20:42 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 31 May 2016 18:42:05 +0000 (20:42 +0200)
src/screens.c

index 4f7dd6f6670a41294c810cb738d26cfd09e55930..1748b1aa9adad2a11c185f7138aeeccd8e553fa6 100644 (file)
@@ -1449,9 +1449,6 @@ void DrawMainMenu()
     return;
   }
 
-  /* needed if different viewport properties defined for menues */
-  ChangeViewportPropertiesIfNeeded();
-
   if (redraw_mask & REDRAW_ALL)
     fade_mask = REDRAW_ALL;
 
@@ -1460,6 +1457,9 @@ void DrawMainMenu()
 
   FadeOut(fade_mask);
 
+  /* needed if different viewport properties defined for menues */
+  ChangeViewportPropertiesIfNeeded();
+
   SetDrawtoField(DRAW_TO_BACKBUFFER);
 
   /* level_nr may have been set to value over handicap with level editor */
@@ -4134,9 +4134,6 @@ void DrawHallOfFame(int highlight_position)
 {
   int fade_mask = REDRAW_FIELD;
 
-  /* needed if different viewport properties defined for scores */
-  ChangeViewportPropertiesIfNeeded();
-
   if (CheckIfGlobalBorderHasChanged())
     fade_mask = REDRAW_ALL;
 
@@ -4158,6 +4155,9 @@ void DrawHallOfFame(int highlight_position)
 
   FadeOut(fade_mask);
 
+  /* needed if different viewport properties defined for scores */
+  ChangeViewportPropertiesIfNeeded();
+
   PlayMenuSound();
   PlayMenuMusic();