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 8c2e2ee..c6d85e3 100644 (file)
@@ -8546,7 +8546,7 @@ void DrawLevelEd(void)
 
   FadeSoundsAndMusic();
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   FadeOut(fade_mask);
index 9197a84..3a3b10e 100644 (file)
@@ -3358,7 +3358,7 @@ void InitGame(void)
   else
     FadeSetEnterScreen();
 
-  if (CheckIfGlobalBorderOrPlayfieldViewportHasChanged())
+  if (CheckFadeAll())
     fade_mask = REDRAW_ALL;
 
   FadeLevelSoundsAndMusic();
index 567fbf1..d131089 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 cdf55ac..4023a34 100644 (file)
@@ -9422,7 +9422,7 @@ boolean CheckIfPlayfieldViewportHasChanged(void)
          new_full_sysize != FULL_SYSIZE);
 }
 
-boolean CheckIfGlobalBorderOrPlayfieldViewportHasChanged(void)
+boolean CheckFadeAll(void)
 {
   return (CheckIfGlobalBorderHasChanged() ||
          CheckIfPlayfieldViewportHasChanged());
index 5243401..a9aedb2 100644 (file)
@@ -284,6 +284,6 @@ void ToggleFullscreenOrChangeWindowScalingIfNeeded(void);
 void ChangeViewportPropertiesIfNeeded(void);
 
 boolean CheckIfPlayfieldViewportHasChanged(void);
-boolean CheckIfGlobalBorderOrPlayfieldViewportHasChanged(void);
+boolean CheckFadeAll(void);
 
 #endif // TOOLS_H