projects
/
platform
/
upstream
/
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
52ea868
..
100df81
100644
(file)
--- 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(
drawfir
e);
+ glutIdleFunc(
idl
e);
glutReshapeFunc(reshape);
glutMainLoop();