Fix gears rotation for high timestamp values

dev
Kristian Høgsberg 15 years ago
parent 5d312db56e
commit 75b70cef55
  1. 2
      gears.c

@ -322,7 +322,7 @@ handle_frame(void *data,
wl_compositor_commit(gears->compositor, 0); 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 = { static const struct wl_compositor_listener compositor_listener = {

Loading…
Cancel
Save