summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-09-12 21:08:48 -0400
committerKristian Høgsberg <krh@redhat.com>2009-09-12 21:08:48 -0400
commit75b70cef556263e39e8061a93f259508f966cf8e (patch)
tree2a0c93910745aa184c3601528e23b1215bb23e6e
parent5d312db56ea7c6d03c9ae4ae6782cabba1f1c568 (diff)
Fix gears rotation for high timestamp values
-rw-r--r--gears.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gears.c b/gears.c
index d32aa96..5654bac 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 = {