X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=3f551d63a01b630d6b195716c5d056307bae15eb;hb=2d49bde26882e981d844866672ddbc54f1cf4875;hp=9a82f34625db6adc01bf345b869bf18514d1ffe8;hpb=409606a4ce16949b8d7c0fb70a9488c7dae9b756;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 9a82f346..3f551d63 100644 --- a/src/tools.c +++ b/src/tools.c @@ -3071,7 +3071,11 @@ void DrawEnvelopeRequestToScreen(int drawing_target) game.request_active && drawing_target == DRAW_TO_SCREEN) { - if (graphic_info[IMG_BACKGROUND_REQUEST].draw_masked) + struct GraphicInfo *g = &graphic_info[IMG_BACKGROUND_REQUEST]; + + SetBitmapAlphaNextBlit(request.bitmap, g->alpha); + + if (g->draw_masked) BlitToScreenMasked(request.bitmap, 0, 0, request.xsize, request.ysize, request.sx, request.sy); else @@ -4604,11 +4608,12 @@ static int RequestHandleEvents(unsigned int req_state, int draw_buffer_game) break; default: - // only check clickable animations if no request gadget clicked - HandleGlobalAnimClicks(mx, my, button_status, FALSE); break; } + // only needed to handle clickable pointer animations here + HandleGlobalAnimClicks(mx, my, button_status, FALSE); + break; }