From: Holger Schemel Date: Wed, 6 Dec 2023 19:59:28 +0000 (+0100) Subject: added support for setting alpha value for envelope style request dialogs X-Git-Tag: 4.3.8.0~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3953adccd575c38db5f5eaee89704dab932441b5;p=rocksndiamonds.git added support for setting alpha value for envelope style request dialogs --- diff --git a/src/tools.c b/src/tools.c index 9a82f346..8d184447 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