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:
Mark Johnson
2007-03-19 23:11:56 +00:00
parent 0b8e4cf22a
commit a75658d7b0
+4 -1
View File
@@ -193,7 +193,7 @@ public class JmeApp
} }
// enter the main rendering and event processing loop // enter the main rendering and event processing loop
while (!_finished && !_display.isClosing()) { while (!_finished) {
try { try {
// render the current frame // render the current frame
long frameStart = processFrame(); long frameStart = processFrame();
@@ -223,6 +223,9 @@ public class JmeApp
stop(); stop();
} }
} }
if (_display.isClosing()) {
stop();
}
} }
try { try {