projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d6ef12
)
mesa: redraw upon keypress in trivial/tri.c
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 17 Oct 2008 19:37:11 +0000
(13:37 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 17 Oct 2008 19:37:50 +0000
(13:37 -0600)
progs/trivial/tri.c
patch
|
blob
|
history
diff --git
a/progs/trivial/tri.c
b/progs/trivial/tri.c
index 12fa8d11b6166708eab8075f4327e5c5eb1cf6d9..64c529415c1b8872a1f30f1bb53f684167684ec2 100644
(file)
--- a/
progs/trivial/tri.c
+++ b/
progs/trivial/tri.c
@@
-56,15
+56,13
@@
static void Reshape(int width, int height)
static void Key(unsigned char key, int x, int y)
{
-
- switch (key) {
- case 27:
- exit(0);
- default:
- return;
- }
-
- glutPostRedisplay();
+ switch (key) {
+ case 27:
+ exit(0);
+ default:
+ glutPostRedisplay();
+ return;
+ }
}
static void Draw(void)