Mesa (mesa_7_6_branch): progs/trivial: Redraw upon keypress.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 17:27:52 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 56de7e222ee0f5e44b87ce05dc94733fdd41e4ed
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56de7e222ee0f5e44b87ce05dc94733fdd41e4ed

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Nov 19 22:52:05 2009 -0800

progs/trivial: Redraw upon keypress.
(cherry picked from commit 9553a42f638bd98eb90e5b7fb37d6b82758b6363)

---

 progs/trivial/linestrip-clip.c         |    2 +-
 progs/trivial/linestrip-flat-stipple.c |    2 +-
 progs/trivial/linestrip.c              |    2 +-
 progs/trivial/tri-unfilled-tri.c       |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/progs/trivial/linestrip-clip.c b/progs/trivial/linestrip-clip.c
index f252822..5e90ea2 100644
--- a/progs/trivial/linestrip-clip.c
+++ b/progs/trivial/linestrip-clip.c
@@ -62,7 +62,7 @@ static void Key(unsigned char key, int x, int y)
       case 27:
 	exit(1);
       default:
-	return;
+	break;
     }
 
     glutPostRedisplay();
diff --git a/progs/trivial/linestrip-flat-stipple.c b/progs/trivial/linestrip-flat-stipple.c
index 5caa724..bae5c3a 100644
--- a/progs/trivial/linestrip-flat-stipple.c
+++ b/progs/trivial/linestrip-flat-stipple.c
@@ -62,7 +62,7 @@ static void Key(unsigned char key, int x, int y)
       case 27:
 	exit(1);
       default:
-	return;
+	break;
     }
 
     glutPostRedisplay();
diff --git a/progs/trivial/linestrip.c b/progs/trivial/linestrip.c
index 0219b1a..b6d6882 100644
--- a/progs/trivial/linestrip.c
+++ b/progs/trivial/linestrip.c
@@ -62,7 +62,7 @@ static void Key(unsigned char key, int x, int y)
       case 27:
 	exit(1);
       default:
-	return;
+	break;
     }
 
     glutPostRedisplay();
diff --git a/progs/trivial/tri-unfilled-tri.c b/progs/trivial/tri-unfilled-tri.c
index 695cc89..75a70b8 100644
--- a/progs/trivial/tri-unfilled-tri.c
+++ b/progs/trivial/tri-unfilled-tri.c
@@ -62,7 +62,7 @@ static void Key(unsigned char key, int x, int y)
       case 27:
 	exit(1);
       default:
-	return;
+	break;
     }
 
     glutPostRedisplay();



More information about the mesa-commit mailing list