Allow to exit by pressing `q' in addition to ESC. Don't bump PORTREVISION

as it is really a minor change.
This commit is contained in:
Alexey Dokuchaev 2011-05-21 17:20:31 +00:00
parent 689da0a8e6
commit 8ce7c7528b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274414

View file

@ -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);
}