From: Holger Schemel Date: Thu, 23 Mar 2023 19:42:55 +0000 (+0100) Subject: fixed playfield redraw bug when closing envelope after asking to play again X-Git-Tag: 4.3.5.3~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3df902ff;p=rocksndiamonds.git fixed playfield redraw bug when closing envelope after asking to play again --- 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]);