From 75b70cef556263e39e8061a93f259508f966cf8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Sat, 12 Sep 2009 21:08:48 -0400 Subject: [PATCH] Fix gears rotation for high timestamp values --- gears.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gears.c b/gears.c index d32aa964..5654bacb 100644 --- a/gears.c +++ b/gears.c @@ -322,7 +322,7 @@ handle_frame(void *data, wl_compositor_commit(gears->compositor, 0); - gears->angle = timestamp / 20.0; + gears->angle = (GLfloat) (timestamp % 8192) * 360 / 8192.0; } static const struct wl_compositor_listener compositor_listener = {