From 73c305851d692a28359c5858fe5592274b75a094 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 25 Nov 2008 22:45:46 -0500 Subject: [PATCH] Make overlay animation actually stop. --- egl-compositor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egl-compositor.c b/egl-compositor.c index c1de51a..57b56ce 100644 --- a/egl-compositor.c +++ b/egl-compositor.c @@ -510,8 +510,8 @@ animate_overlay(struct egl_compositor *ec) ec->overlay->map.y = ec->overlay_y + 0.5; - if (fabs(y + 0.5 - ec->overlay_target) > 0.2 || - fabs(ec->overlay_y + 5 - ec->overlay_target) > 0.2) + if (fabs(y - ec->overlay_target) > 0.2 || + fabs(ec->overlay_y - ec->overlay_target) > 0.2) schedule_repaint(ec); } -- 2.7.4