From: Holger Schemel Date: Wed, 16 Aug 2023 14:45:40 +0000 (+0200) Subject: fixed playfield redraw bug when closing envelope after asking to play again X-Git-Tag: 4.3.7.0~38 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9bef503670630747428334ba43f938c24132d834;p=rocksndiamonds.git 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. --- 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]);