summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-10-23 18:55:48 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-10-23 18:55:48 +0000
commit07553c58fd068a0e1b43e564fba1baffa6ea222d (patch)
treefcd22c7d712910340d2755f07a18a8fc5c1463fa /progs/xdemos
parente57b6d5a4fee3f2540ebf6fff0702583bdc8e6d2 (diff)
wrap angle value (Philipp Klaus Krause)
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glxgears.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/xdemos/glxgears.c b/progs/xdemos/glxgears.c
index 59691513e2..a82a0b9bc7 100644
--- a/progs/xdemos/glxgears.c
+++ b/progs/xdemos/glxgears.c
@@ -424,6 +424,8 @@ event_loop(Display *dpy, Window win)
/* next frame */
angle += 2.0;
+ if (angle > 3600.0)
+ angle -= 3600.0;
draw();
glXSwapBuffers(dpy, win);