summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-10-21 04:29:02 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-10-21 04:29:02 +0000
commite188b6e1f1d1e5e72985fdc3d69d26eeab26e987 (patch)
tree56c86d7a252d3c3c0dd2107a9b7016530a54ca12
parenteb326f5f01ed2d904e23ada533b92d5570beafee (diff)
added a proper idle() function
-rw-r--r--progs/demos/fire.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/progs/demos/fire.c b/progs/demos/fire.c
index 52ea868302..100df81565 100644
--- a/progs/demos/fire.c
+++ b/progs/demos/fire.c
@@ -494,6 +494,13 @@ drawfire(void)
static void
+idle(void)
+{
+ glutPostRedisplay();
+}
+
+
+static void
special(int key, int x, int y)
{
switch (key) {
@@ -720,7 +727,7 @@ main(int ac, char **av)
glutKeyboardFunc(key);
glutSpecialFunc(special);
glutDisplayFunc(drawfire);
- glutIdleFunc(drawfire);
+ glutIdleFunc(idle);
glutReshapeFunc(reshape);
glutMainLoop();