From e188b6e1f1d1e5e72985fdc3d69d26eeab26e987 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 21 Oct 2000 04:29:02 +0000 Subject: [PATCH] added a proper idle() function --- progs/demos/fire.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 @@ 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(); -- 2.7.4