fixed playfield redraw bug when closing envelope after asking to play again
authorHolger Schemel <info@artsoft.org>
Wed, 16 Aug 2023 14:45:40 +0000 (16:45 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 16 Aug 2023 14:45:40 +0000 (16:45 +0200)
This reverts commit 3df902ff.

For currently unknown reason, the above commit does not fix the
described bug, but introduces it. As long as this is not sorted out,
the commit will be reverted.

src/tools.c

index e321f18c513a81dc3008e0e0cc87ed5581a285b4..c1605b4397cac8c50d59d692dbe3f23eaf0e2ad2 100644 (file)
@@ -3314,15 +3314,14 @@ 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]);