fixed playfield redraw bug when closing envelope after asking to play again
authorHolger Schemel <info@artsoft.org>
Thu, 23 Mar 2023 19:42:55 +0000 (20:42 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 23 Mar 2023 19:45:18 +0000 (20:45 +0100)
src/tools.c

index 373e01b3e5d28e04ee94d0cdde9b6ad6207578a6..f2cffa56ba65aad73edd527e338b5a2b08eff30e 100644 (file)
@@ -3327,14 +3327,15 @@ static void ShowEnvelopeRequest(char *text, unsigned int req_state, int action)
   if (game_status == GAME_MODE_PLAYING)
     BlitScreenToBitmap(backbuffer);
 
+  if (game_status == GAME_MODE_PLAYING || action == ACTION_OPENING)
+    BlitBitmap(backbuffer, bitmap_db_store_1, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
+
   SetDrawtoField(DRAW_TO_BACKBUFFER);
 
   // SetDrawBackgroundMask(REDRAW_NONE);
 
   if (action == ACTION_OPENING)
   {
-    BlitBitmap(backbuffer, bitmap_db_store_1, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
-
     if (req_state & REQ_ASK)
     {
       MapGadget(tool_gadget[TOOL_CTRL_ID_YES]);