rnd-20070428-2-src
authorHolger Schemel <info@artsoft.org>
Sat, 28 Apr 2007 15:13:30 +0000 (17:13 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:55:51 +0000 (10:55 +0200)
src/conf_gfx.c
src/conftime.h
src/init.c
src/screens.c
src/tools.c

index 908700cd252ea18e29bd7cd37c935a1b82db700c..33bfdba6d549626e45d976b2556b57eb3855fb0d 100644 (file)
@@ -5289,20 +5289,20 @@ struct ConfigInfo image_config[] =
   { "init.busy.align",                         "center"                },
   { "init.busy.valign",                                "middle"                },
 
-  { "menu.enter_menu.fade_mode",               "crossfade"             },
+  { "menu.enter_menu.fade_mode",               "none"                  },
   { "menu.enter_menu.fade_delay",              "250"                   },
   { "menu.enter_menu.post_delay",              "125"                   },
-  { "menu.leave_menu.fade_mode",               "crossfade"             },
+  { "menu.leave_menu.fade_mode",               "none"                  },
   { "menu.leave_menu.fade_delay",              "250"                   },
   { "menu.leave_menu.post_delay",              "125"                   },
-  { "menu.enter_screen.fade_mode",             "crossfade"             },
-  { "menu.enter_screen.fade_delay",            "250"                   },
+  { "menu.enter_screen.fade_mode",             "fade"                  },
+  { "menu.enter_screen.fade_delay",            "750"                   },
   { "menu.enter_screen.post_delay",            "125"                   },
   { "menu.next_screen.fade_mode",              "crossfade"             },
   { "menu.next_screen.fade_delay",             "250"                   },
   { "menu.next_screen.post_delay",             "125"                   },
-  { "menu.leave_screen.fade_mode",             "crossfade"             },
-  { "menu.leave_screen.fade_delay",            "250"                   },
+  { "menu.leave_screen.fade_mode",             "fade"                  },
+  { "menu.leave_screen.fade_delay",            "750"                   },
   { "menu.leave_screen.post_delay",            "125"                   },
   { "menu.enter_screen.SCORES.fade_mode",      ARG_DEFAULT             },
   { "menu.enter_screen.SCORES.fade_delay",     ARG_DEFAULT             },
index 655a6ba8949d5d83cf2f2b543f581f3736168ab5..b81fab18facca652dcea177707cc3497676777ae 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "2007-04-28 04:06"
+#define COMPILE_DATE_STRING "2007-04-28 17:12"
index 9ecc59c389c35275d42875619ffd33f0b7e16239..79c3d58815324d1e1a2dec1ed7feba7aa36b8085 100644 (file)
@@ -5794,11 +5794,13 @@ void ReloadCustomArtwork(int force_reload)
 #endif
   print_timestamp_time("ClearRectangle");
 
+#if 0
   printf("::: fading in ... %d\n", fading.fade_mode);
-
+#endif
   FadeIn(REDRAW_ALL);
-
+#if 0
   printf("::: done\n");
+#endif
 
   if (gfx_new_identifier != NULL || force_reload_gfx)
   {
@@ -5828,9 +5830,13 @@ void ReloadCustomArtwork(int force_reload)
 
   game_status = last_game_status;      /* restore current game status */
 
+#if 0
   printf("::: FadeOut @ ReloadCustomArtwork ...\n");
+#endif
   FadeOut(REDRAW_ALL);
+#if 0
   printf("::: FadeOut @ ReloadCustomArtwork done\n");
+#endif
 
   RedrawBackground();
 
index a29c3d65e8755d7a97410f19ce7763817f0af18d..bbd7eb8284e1f02799e849d2fd9952a14f05b985 100644 (file)
@@ -1280,6 +1280,7 @@ void DrawMainMenuExt(int redraw_mask, boolean do_fading)
 {
   static LevelDirTree *leveldir_last_valid = NULL;
   boolean levelset_has_changed = FALSE;
+  boolean redraw_all = FALSE;
 
   FadeSetLeaveScreen();
 
@@ -1333,10 +1334,17 @@ void DrawMainMenuExt(int redraw_mask, boolean do_fading)
   /* needed if last screen (level choice) changed graphics, sounds or music */
   ReloadCustomArtwork(0);
 
+  if (redraw_mask & REDRAW_ALL)
+    redraw_all = TRUE;
+
 #if 1
+#if 0
   printf("::: FadeOut @ DrawMainMenuExt ...\n");
+#endif
   FadeOut(redraw_mask);
+#if 0
   printf("::: FadeOut @ DrawMainMenuExt done\n");
+#endif
 
   /* needed if last screen was the editor screen */
   UndrawSpecialEditorDoor();
@@ -1418,6 +1426,11 @@ void DrawMainMenuExt(int redraw_mask, boolean do_fading)
   }
 #endif
 
+#if 0
+  if (redraw_all)
+    redraw_mask = REDRAW_ALL;
+#endif
+
   FadeIn(redraw_mask);
 
   FadeSetEnterMenu();
@@ -4915,9 +4928,11 @@ static void DrawSetupScreen_Generic()
   if (redraw_mask & REDRAW_ALL)
     redraw_all = TRUE;
 
+#if 0
   printf("::: %s\n", (redraw_mask & REDRAW_FIELD ? "REDRAW_FIELD" :
                      redraw_mask & REDRAW_ALL ? "REDRAW_ALL" :
                      int2str(0, redraw_mask)));
+#endif
 
 #if 1
   FadeOut(redraw_mask);
index 63c29e6262030ae4f67591cc084c47970f711aeb..0522aae07e601f8f0ea0f6b64bca815539cf4091 100644 (file)
@@ -241,8 +241,9 @@ void DrawMaskedBorder_ALL()
 
 void DrawMaskedBorder(int redraw_mask)
 {
-  /* do not draw masked screen borders when displaying title screens */
-  if (effectiveGameStatus() == GAME_MODE_TITLE)
+  /* never draw masked screen borders on borderless screens */
+  if (effectiveGameStatus() == GAME_MODE_LOADING ||
+      effectiveGameStatus() == GAME_MODE_TITLE)
     return;
 
   if (redraw_mask & REDRAW_ALL)
@@ -465,7 +466,7 @@ static void FadeExt(int fade_mask, int fade_mode, int fade_type)
   {
     if (fade_type_skip != FADE_TYPE_NONE)
     {
-#if 1
+#if 0
       printf("::: skipping %d ... [%d] (X)\n", fade_mode, fade_type_skip);
 #endif
 
@@ -477,16 +478,18 @@ static void FadeExt(int fade_mask, int fade_mode, int fade_type)
     }
 
     if (fading.fade_mode & FADE_TYPE_TRANSFORM)
+    {
       FadeCrossSaveBackbuffer();
 
-    return;
+      return;
+    }
   }
 
   redraw_mask |= fade_mask;
 
   if (fade_type == FADE_TYPE_SKIP)
   {
-#if 1
+#if 0
     printf("::: will skip %d ... [%d]\n", fade_mode, fade_type_skip);
 #endif
 
@@ -497,7 +500,7 @@ static void FadeExt(int fade_mask, int fade_mode, int fade_type)
 
   if (fade_type_skip != FADE_TYPE_NONE)
   {
-#if 1
+#if 0
     printf("::: skipping %d ... [%d]\n", fade_mode, fade_type_skip);
 #endif
 
@@ -528,7 +531,7 @@ static void FadeExt(int fade_mask, int fade_mode, int fade_type)
 
   /* !!! what abount fade_mask == REDRAW_FIELD | REDRAW_ALL ??? !!! */
 
-#if 1
+#if 0
   printf("::: NOW FADING %d ... [%d]\n", fade_mode, fade_type);
 #endif