From 3953adccd575c38db5f5eaee89704dab932441b5 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 6 Dec 2023 20:59:28 +0100 Subject: [PATCH] added support for setting alpha value for envelope style request dialogs --- src/tools.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.34.1