Mesa (gallium-0.1): mesa: redraw upon keypress in trivial/tri.c

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 17 19:38:39 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: d422c1eb5c0fac8f946758ecce96072505c77683
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d422c1eb5c0fac8f946758ecce96072505c77683

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Fri Oct 17 13:37:11 2008 -0600

mesa: redraw upon keypress in trivial/tri.c

---

 progs/trivial/tri.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c
index 12fa8d1..64c5294 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)




More information about the mesa-commit mailing list