mesa: redraw upon keypress in trivial/tri.c
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 17 Oct 2008 19:37:11 +0000 (13:37 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 17 Oct 2008 19:37:50 +0000 (13:37 -0600)
progs/trivial/tri.c

index 12fa8d1..64c5294 100644 (file)
@@ -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)