projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d312db
)
Fix gears rotation for high timestamp values
author
Kristian Høgsberg
<krh@redhat.com>
Sun, 13 Sep 2009 01:08:48 +0000
(21:08 -0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Sun, 13 Sep 2009 01:08:48 +0000
(21:08 -0400)
gears.c
patch
|
blob
|
history
diff --git
a/gears.c
b/gears.c
index
d32aa96
..
5654bac
100644
(file)
--- 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 = {