Fix gears rotation for high timestamp values
diff --git a/gears.c b/gears.c
index d32aa96..5654bac 100644
--- a/gears.c
+++ b/gears.c
@@ -322,7 +322,7 @@
 
 	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 = {