summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-17 13:37:11 -0600
committerBrian Paul <[email protected]>2008-10-17 13:37:50 -0600
commitd422c1eb5c0fac8f946758ecce96072505c77683 (patch)
treef8566622953c0ea6604abeb1b8d2eff014fed1e5 /progs
parent8d6ef125ac6044438db5b89d6d310ccfc4b8140a (diff)
mesa: redraw upon keypress in trivial/tri.c
Diffstat (limited to 'progs')
-rw-r--r--progs/trivial/tri.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c
index 12fa8d11b61..64c529415c1 100644
--- 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)