Fix ESC button reaction.
This commit is contained in:
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
|
@ -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}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue