diff options
author | Kristian Høgsberg <krh@redhat.com> | 2009-09-12 21:08:48 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2009-09-12 21:08:48 -0400 |
commit | 75b70cef556263e39e8061a93f259508f966cf8e (patch) | |
tree | 2a0c93910745aa184c3601528e23b1215bb23e6e | |
parent | 5d312db56ea7c6d03c9ae4ae6782cabba1f1c568 (diff) |
Fix gears rotation for high timestamp values
-rw-r--r-- | gears.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = { |