Fix ESC button reaction.

This commit is contained in:
Alexey Dokuchaev 2011-04-08 06:05:49 +00:00
parent 6e160d8a7b
commit a41b6d5920
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272367
2 changed files with 6 additions and 3 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= simpleviewer
PORTVERSION= 1.7.1553.8560
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/OpenGL%20edition
DISTNAME= sviewgl-src-${PORTVERSION}

View file

@ -70,12 +70,14 @@
}
void CWindow::fnKeyboard(unsigned char key, int x, int y) {
@@ -246,7 +254,7 @@
@@ -245,8 +253,8 @@
switch(key) {
case 27: // ESC
// exit(0);
-// exit(0);
- glutLeaveMainLoop();
+ //glutLeaveMainLoop();
+ exit(0);
+// glutLeaveMainLoop();
break;
case 127: // Delete
if(mod == GLUT_ACTIVE_CTRL) {