From 9bef503670630747428334ba43f938c24132d834 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 16 Aug 2023 16:45:40 +0200 Subject: [PATCH 1/1] fixed playfield redraw bug when closing envelope after asking to play again 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools.c b/src/tools.c index e321f18c..c1605b43 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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]); -- 2.34.1