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 52ea8683021..100df815651 100644 --- a/progs/demos/fire.c +++ b/progs/demos/fire.c @@ -493,6 +493,13 @@ drawfire(void) } +static void +idle(void) +{ + glutPostRedisplay(); +} + + static void special(int key, int x, int y) { @@ -720,7 +727,7 @@ main(int ac, char **av) glutKeyboardFunc(key); glutSpecialFunc(special); glutDisplayFunc(drawfire); - glutIdleFunc(drawfire); + glutIdleFunc(idle); glutReshapeFunc(reshape); glutMainLoop(); -- 2.30.2