diff options
Diffstat (limited to 'progs/demos/fire.c')
-rw-r--r-- | progs/demos/fire.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ -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(); |