mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Fix gears rotation for high timestamp values
This commit is contained in:
parent
5d312db56e
commit
75b70cef55
1 changed files with 1 additions and 1 deletions
2
gears.c
2
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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue