opt: correct the layer animation coordinate data type

This commit is contained in:
DreamMaoMao
2026-01-03 09:19:18 +08:00
parent 23d550e04d
commit 0d13b1002e

View File

@@ -319,9 +319,9 @@ 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 +
int32_t x = l->animation.initial.x +
(l->current.x - l->animation.initial.x) * factor;
uint32_t y = l->animation.initial.y +
int32_t y = l->animation.initial.y +
(l->current.y - l->animation.initial.y) * factor;
double opacity_eased_progress =