Add code to test leaving game mode to return to window mode...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e45b794a5d
commit
2d189f198f
@ -139,6 +139,16 @@ keyboard(unsigned char key, int x, int y)
|
||||
init();
|
||||
break;
|
||||
}
|
||||
|
||||
case 'l':
|
||||
case 'L': {
|
||||
// return to default window
|
||||
glutLeaveGameMode();
|
||||
if (!glutGetWindow())
|
||||
// exit if none
|
||||
exit(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user