added support for setting alpha value for envelope style request dialogs
authorHolger Schemel <info@artsoft.org>
Wed, 6 Dec 2023 19:59:28 +0000 (20:59 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 6 Dec 2023 19:59:28 +0000 (20:59 +0100)
src/tools.c

index 9a82f34625db6adc01bf345b869bf18514d1ffe8..8d1844479ea9b8c45785e57e57243f716565745f 100644 (file)
@@ -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