projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb326f5
)
added a proper idle() function
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 21 Oct 2000 04:29:02 +0000
(
04:29
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 21 Oct 2000 04:29:02 +0000
(
04:29
+0000)
progs/demos/fire.c
patch
|
blob
|
history
diff --git
a/progs/demos/fire.c
b/progs/demos/fire.c
index 52ea8683021e9960933a1e83c25f93a030cb7515..100df8156514135b7a58dd57c79f1d63d50c279e 100644
(file)
--- 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(
drawfir
e);
+ glutIdleFunc(
idl
e);
glutReshapeFunc(reshape);
glutMainLoop();