diff options
author | Brian Paul <[email protected]> | 2000-10-21 04:29:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-10-21 04:29:02 +0000 |
commit | e188b6e1f1d1e5e72985fdc3d69d26eeab26e987 (patch) | |
tree | 56c86d7a252d3c3c0dd2107a9b7016530a54ca12 /progs/demos/fire.c | |
parent | eb326f5f01ed2d904e23ada533b92d5570beafee (diff) |
added a proper idle() function
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(); |