aboutsummaryrefslogtreecommitdiff
path: root/graphics/simpleviewer
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2011-05-21 17:20:31 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2011-05-21 17:20:31 +0000
commit8ce7c7528b21810f844a45e5844f8b5c2875544c (patch)
treebfbe50b980e2934f11fbb08413d656e499dc8f53 /graphics/simpleviewer
parent689da0a8e6998542dec4bfe364e787e319ff758d (diff)
downloadports-8ce7c7528b21810f844a45e5844f8b5c2875544c.tar.gz
ports-8ce7c7528b21810f844a45e5844f8b5c2875544c.zip
Allow to exit by pressing `q' in addition to ESC. Don't bump PORTREVISION
as it is really a minor change.
Notes
Notes: svn path=/head/; revision=274414
Diffstat (limited to 'graphics/simpleviewer')
-rw-r--r--graphics/simpleviewer/files/patch-defreeglut6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/simpleviewer/files/patch-defreeglut b/graphics/simpleviewer/files/patch-defreeglut
index 7fe4930934e0..aa9e069ff043 100644
--- a/graphics/simpleviewer/files/patch-defreeglut
+++ b/graphics/simpleviewer/files/patch-defreeglut
@@ -70,18 +70,20 @@
}
void CWindow::fnKeyboard(unsigned char key, int x, int y) {
-@@ -245,8 +253,8 @@
+@@ -245,8 +253,10 @@
switch(key) {
case 27: // ESC
-// exit(0);
- glutLeaveMainLoop();
++ case 'q':
++ case 'Q':
+ exit(0);
+// glutLeaveMainLoop();
break;
case 127: // Delete
if(mod == GLUT_ACTIVE_CTRL) {
-@@ -639,9 +647,11 @@
+@@ -639,9 +649,11 @@
g_window->fnMouseButtons(button, state, x, y);
}