aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorChris Apers2003-07-22 08:33:13 +0000
committerChris Apers2003-07-22 08:33:13 +0000
commit6d9237509365f5d385e9c3fd80d44cac0bccfffe (patch)
treef16fc69105a5e3208d29ef6dcc1e50e24a8168b8 /gui
parent2cee32864a8be752abf0a0680f833b270db91973 (diff)
downloadscummvm-rg350-6d9237509365f5d385e9c3fd80d44cac0bccfffe.tar.gz
scummvm-rg350-6d9237509365f5d385e9c3fd80d44cac0bccfffe.tar.bz2
scummvm-rg350-6d9237509365f5d385e9c3fd80d44cac0bccfffe.zip
Fix for bug #775512
svn-id: r9117
Diffstat (limited to 'gui')
-rw-r--r--gui/newgui.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index dc2a7fae17..90df0c978b 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -23,6 +23,9 @@
#include "newgui.h"
#include "dialog.h"
+#ifdef __PALM_OS__
+# include "palm.h"
+#endif
#ifdef _MSC_VER
# pragma warning( disable : 4068 ) // unknown pragma
@@ -118,7 +121,15 @@ void NewGui::runLoop() {
}
while (!_dialogStack.empty() && activeDialog == _dialogStack.top()) {
-
+#ifdef __PALM_OS__
+ // There is no exit(.) function under PalmOS, to exit an app
+ // we need to send an 'exit' event to the event handler
+ // and then the system return to the launcher. But this event
+ // is not handled by the following loop and so we need to force exit.
+ // In other systems like Windows ScummVM exit immediatly and so this doesn't appear.
+ if (((OSystem_PALMOS *)_system)->_quit)
+ return;
+#endif
activeDialog->handleTickle();
if (_needRedraw) {
@@ -528,4 +539,3 @@ void NewGui_initGlobals() {
}
void NewGui_releaseGlobals(){ GRELEASEPTR(GBVARS_GUIFONT_INDEX, GBVARS_SCUMM) }
#endif
-