From 3df902ffd036b993f232ff9ff40a8435a838bd1f Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 23 Mar 2023 20:42:55 +0100 Subject: [PATCH] fixed playfield redraw bug when closing envelope after asking to play again --- src/tools.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools.c b/src/tools.c index 373e01b3..f2cffa56 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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]); -- 2.34.1