rnd-20140308-1-src
[rocksndiamonds.git] / src / screens.c
index 5bcaa1d5abb047a22033ac7e0356575f7da8ab48..aeef4fece33dbe8cc71e68bf45157f5d5d2ed26c 100644 (file)
@@ -1481,6 +1481,11 @@ void DrawMainMenuExt(int fade_mask, boolean do_fading)
   MapTapeButtons();
   MapScreenMenuGadgets(SCREEN_MASK_MAIN);
 
+#if 1
+  /* copy actual game door content to door double buffer for OpenDoor() */
+  BlitBitmap(drawto, bitmap_db_door_2, VX, VY, VXSIZE, VYSIZE, 0, 0);
+#endif
+
 #if 1
   if (fade_mask == REDRAW_ALL)
   {
@@ -1958,6 +1963,10 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button)
        game_status = GAME_MODE_SETUP;
        setup_mode = SETUP_MODE_MAIN;
 
+#if 1
+       ChangeViewportPropertiesIfNeeded();
+#endif
+
        DrawSetupScreen();
       }
       else if (pos == MAIN_CONTROL_QUIT)