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 12fa8d11b6166708eab8075f4327e5c5eb1cf6d9..64c529415c1b8872a1f30f1bb53f684167684ec2 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)