renamed function
authorHolger Schemel <info@artsoft.org>
Mon, 3 Dec 2018 22:34:54 +0000 (23:34 +0100)
committerHolger Schemel <info@artsoft.org>
Mon, 3 Dec 2018 22:34:54 +0000 (23:34 +0100)
src/editor.c
src/game.c
src/screens.c
src/tools.c
src/tools.h

index 8c2e2ee6c803898b878ec3ce78be2bfff9ea510b..c6d85e3139926a01dfb3510757639d7af277193a 100644 (file)
@@ -8546,7 +8546,7 @@ void DrawLevelEd(void)
 
   FadeSoundsAndMusic();
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   FadeOut(fade_mask);
index 9197a84aabf755f9e049e39f81ec22827612d20d..3a3b10e63c72fc521e501a988fefadd7021a668f 100644 (file)
@@ -3358,7 +3358,7 @@ void InitGame(void)
   else
     FadeSetEnterScreen();
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   FadeLevelSoundsAndMusic();
index 567fbf163b6888a491a75b71a45330427308591f..d1310895fb19e632ba05ebe7d4effc5ee3451ab5 100644 (file)
@@ -1593,7 +1593,7 @@ void DrawMainMenu(void)
   if (redraw_mask & REDRAW_ALL)
     fade_mask = REDRAW_ALL;
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   FadeOut(fade_mask);
@@ -2324,7 +2324,7 @@ static void DrawInfoScreen_Main(void)
   if (redraw_mask & REDRAW_ALL)
     fade_mask = REDRAW_ALL;
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   UnmapAllGadgets();
@@ -3980,7 +3980,7 @@ static void DrawChooseTree(TreeInfo **ti_ptr)
 {
   int fade_mask = REDRAW_FIELD;
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   if (strEqual((*ti_ptr)->subdir, STRING_TOP_DIRECTORY))
@@ -4517,7 +4517,7 @@ void DrawHallOfFame(int level_nr, int highlight_position)
 {
   int fade_mask = REDRAW_FIELD;
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   UnmapAllGadgets();
@@ -6759,7 +6759,7 @@ static void DrawSetupScreen_Generic(void)
   char *title_string = NULL;
   int i;
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   UnmapAllGadgets();
index cdf55ac3368dc4be36c79aa47fe4b73158306cbd..4023a34e00d947dea8e8a631869f5912db462e9c 100644 (file)
@@ -9422,7 +9422,7 @@ boolean CheckIfPlayfieldViewportHasChanged(void)
          new_full_sysize != FULL_SYSIZE);
 }
 
-boolean CheckIfGlobalBorderOrPlayfieldViewportHasChanged(void)
+boolean CheckFadeAll(void)
 {
   return (CheckIfGlobalBorderHasChanged() ||
          CheckIfPlayfieldViewportHasChanged());
index 5243401b18fd328792eefae88ebddd1e575a1e41..a9aedb2369defc58adbee8a7b97a5e4ad27c5899 100644 (file)
@@ -284,6 +284,6 @@ void ToggleFullscreenOrChangeWindowScalingIfNeeded(void);
 void ChangeViewportPropertiesIfNeeded(void);
 
 boolean CheckIfPlayfieldViewportHasChanged(void);
-boolean CheckIfGlobalBorderOrPlayfieldViewportHasChanged(void);
+boolean CheckFadeAll(void);
 
 #endif // TOOLS_H