From 0d13b1002e0218373f6e3cc6ef0c4c912f6684c4 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 3 Jan 2026 09:19:18 +0800 Subject: [PATCH] opt: correct the layer animation coordinate data type --- src/animation/layer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/animation/layer.h b/src/animation/layer.h index 141f132..e944382 100644 --- a/src/animation/layer.h +++ b/src/animation/layer.h @@ -319,10 +319,10 @@ void layer_animation_next_tick(LayerSurface *l) { l->animation.initial.height + (l->current.height - l->animation.initial.height) * factor; - uint32_t x = l->animation.initial.x + - (l->current.x - l->animation.initial.x) * factor; - uint32_t y = l->animation.initial.y + - (l->current.y - l->animation.initial.y) * factor; + int32_t x = l->animation.initial.x + + (l->current.x - l->animation.initial.x) * factor; + int32_t y = l->animation.initial.y + + (l->current.y - l->animation.initial.y) * factor; double opacity_eased_progress = find_animation_curve_at(animation_passed, OPAFADEIN);