Small change to make it possible to intercept window closing actions (in
case we want to do something other than close the application at that time). git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@173 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -193,7 +193,7 @@ public class JmeApp
|
||||
}
|
||||
|
||||
// enter the main rendering and event processing loop
|
||||
while (!_finished && !_display.isClosing()) {
|
||||
while (!_finished) {
|
||||
try {
|
||||
// render the current frame
|
||||
long frameStart = processFrame();
|
||||
@@ -223,6 +223,9 @@ public class JmeApp
|
||||
stop();
|
||||
}
|
||||
}
|
||||
if (_display.isClosing()) {
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user