From d1a0dcb34b3d1c33e8cc283fe4dee238c94b84f8 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 12 Dec 2023 14:12:40 +0100 Subject: [PATCH] removed explicitly setting draw order for pointer-style animations As pointer-style animations are handled specially anyway (always drawn on top of all other global animations), setting the draw order is not required anymore. --- src/anim.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/anim.c b/src/anim.c index dcd66e33..a23d6e58 100644 --- a/src/anim.c +++ b/src/anim.c @@ -602,19 +602,10 @@ static void InitGlobalAnimControls(void) anim->has_base = TRUE; } - // apply special settings for pointer-style animations - if (part->control_info.class == get_hash_from_key("pointer")) - { - // force animation to be on top (must set anim and part control) - if (anim->control_info.draw_order == 0) - anim->control_info.draw_order = 1000000; - if (part->control_info.draw_order == 0) - part->control_info.draw_order = 1000000; - - // force animation to pass-through clicks (must set part control) - if (part->control_info.style == STYLE_DEFAULT) - part->control_info.style |= STYLE_PASSTHROUGH; - } + // force pointer-style animations to pass-through clicks + if (part->control_info.class == get_hash_from_key("pointer") && + part->control_info.style == STYLE_DEFAULT) + part->control_info.style |= STYLE_PASSTHROUGH; } if (anim->num_parts > 0 || anim->has_base) -- 2.34.1