commit | e188b6e1f1d1e5e72985fdc3d69d26eeab26e987 | [log] [tgz] |
---|---|---|
author | Brian Paul <brian.paul@tungstengraphics.com> | Sat Oct 21 04:29:02 2000 +0000 |
committer | Brian Paul <brian.paul@tungstengraphics.com> | Sat Oct 21 04:29:02 2000 +0000 |
tree | 56c86d7a252d3c3c0dd2107a9b7016530a54ca12 | |
parent | eb326f5f01ed2d904e23ada533b92d5570beafee [diff] [blame] |
added a proper idle() function
diff --git a/progs/demos/fire.c b/progs/demos/fire.c index 52ea868..100df81 100644 --- a/progs/demos/fire.c +++ b/progs/demos/fire.c
@@ -494,6 +494,13 @@ static void +idle(void) +{ + glutPostRedisplay(); +} + + +static void special(int key, int x, int y) { switch (key) { @@ -720,7 +727,7 @@ glutKeyboardFunc(key); glutSpecialFunc(special); glutDisplayFunc(drawfire); - glutIdleFunc(drawfire); + glutIdleFunc(idle); glutReshapeFunc(reshape); glutMainLoop();