From: Brian Paul Date: Sat, 21 Oct 2000 04:29:02 +0000 (+0000) Subject: added a proper idle() function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e188b6e1f1d1e5e72985fdc3d69d26eeab26e987;p=mesa.git added a proper idle() function --- 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();