CloseDoor(DOOR_CLOSE_ALL);
-#if 1
/* needed if different viewport properties defined for editor */
ChangeViewportPropertiesIfNeeded();
-#endif
if (CheckIfRedrawGlobalBorderIsNeeded())
fade_mask = REDRAW_ALL;
-#if 0
- printf("::: %d\n", (fade_mask == REDRAW_ALL ? 1 : 0));
-#endif
-
FadeOut(fade_mask);
-#if 0
- /* needed after playing if editor playfield area has different size */
- ClearRectangle(drawto, REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE);
-#endif
-
-#if 0
- /* needed if different viewport properties defined for editor */
- ChangeViewportPropertiesIfNeeded();
-#endif
-
-#if 1
ClearField();
-#endif
InitZoomLevelSettings();
if (!game.restart_level)
CloseDoor(DOOR_CLOSE_1);
-#if 1
/* needed if different viewport properties defined for playing */
ChangeViewportPropertiesIfNeeded();
-#endif
if (level_editor_test_game)
FadeSkipNextFadeIn();
if (CheckIfRedrawGlobalBorderIsNeeded())
fade_mask = REDRAW_ALL;
-#if 0
- printf("::: %d\n", (fade_mask == REDRAW_ALL ? 1 : 0));
-#endif
-
FadeOut(fade_mask);
-#if 0
- /* needed if different viewport properties defined for playing */
- ChangeViewportPropertiesIfNeeded();
-#endif
-
-#if 1
ClearField();
-#endif
DrawCompleteVideoDisplay();
/* needed if last screen (level choice) changed graphics, sounds or music */
ReloadCustomArtwork(0);
-#if 1
/* needed if different viewport properties defined for menues */
ChangeViewportPropertiesIfNeeded();
-#endif
if (redraw_mask & REDRAW_ALL)
fade_mask = REDRAW_ALL;
FadeOut(fade_mask);
-#if 0
- /* needed if different viewport properties defined for menues */
- ChangeViewportPropertiesIfNeeded();
-#endif
-
/* needed if last screen was the editor screen */
UndrawSpecialEditorDoor();
SetMainBackgroundImage(IMG_BACKGROUND_MAIN);
-#if 1
+#if 0
if (fade_mask == REDRAW_ALL)
RedrawGlobalBorder();
#endif
DrawMaskedBorder(REDRAW_ALL);
-#if 0
- if (redraw_mask & REDRAW_ALL)
- fade_mask = REDRAW_ALL;
-#endif
-
FadeIn(fade_mask);
FadeSetEnterMenu();