diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-10-23 18:55:30 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-10-23 18:55:30 +0000 |
commit | ca21ad4956e25d9c267e9334b7e358595b5a245a (patch) | |
tree | cf2420e8eae22edf2497b967f777796e11d18623 /progs | |
parent | 5b81639a6eec7df502cee31de86ad7ef8f69851e (diff) |
wrap angle value (Philipp Klaus Krause)
Diffstat (limited to 'progs')
-rw-r--r-- | progs/xdemos/glxgears.c | 2 |
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); |