fixed drawing envelope request to be always on top of global animations
authorHolger Schemel <info@artsoft.org>
Mon, 2 Oct 2023 10:06:56 +0000 (12:06 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 2 Oct 2023 10:24:22 +0000 (12:24 +0200)
src/conf_gfx.c
src/tools.c

index be3f35770ca116843436e562b4b12f94157acecb..0fe69a8d2301f97ef5985fbd44c9f2f96bf7b1b7 100644 (file)
@@ -10069,7 +10069,6 @@ struct ConfigInfo image_config[] =
   { "request.anim_mode",                       "default"               },
   { "request.align",                           "center"                },
   { "request.valign",                          "middle"                },
-  { "request.draw_order",                      "0"                     },
   { "request.autowrap",                                "false"                 },
   { "request.centered",                                "true"                  },
   { "request.wrap_single_words",               "true"                  },
index e66df891e48db48c8d20558b7146523bf23f281a..70509ada55c319eeab519eccb11c9381643f26f2 100644 (file)
@@ -3011,8 +3011,7 @@ void ShowEnvelope(int envelope_nr)
 static void PrepareEnvelopeRequestToScreen(Bitmap *bitmap, int sx, int sy,
                                           int xsize, int ysize)
 {
-  if (!global.use_envelope_request ||
-      request.sort_priority <= 0)
+  if (!global.use_envelope_request)
     return;
 
   if (request.bitmap == NULL ||
@@ -3046,7 +3045,6 @@ void DrawEnvelopeRequestToScreen(int drawing_target)
 {
   if (global.use_envelope_request &&
       game.request_active_or_moving &&
-      request.sort_priority > 0 &&
       drawing_target == DRAW_TO_SCREEN)
   {
     BlitToScreen(request.bitmap, 0, 0, request.xsize, request.ysize,