diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-10-23 18:55:48 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-10-23 18:55:48 +0000 |
commit | 07553c58fd068a0e1b43e564fba1baffa6ea222d (patch) | |
tree | fcd22c7d712910340d2755f07a18a8fc5c1463fa /progs | |
parent | e57b6d5a4fee3f2540ebf6fff0702583bdc8e6d2 (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); |