summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-10-23 18:55:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-10-23 18:55:30 +0000
commitca21ad4956e25d9c267e9334b7e358595b5a245a (patch)
treecf2420e8eae22edf2497b967f777796e11d18623 /progs
parent5b81639a6eec7df502cee31de86ad7ef8f69851e (diff)
wrap angle value (Philipp Klaus Krause)
Diffstat (limited to 'progs')
-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);