diff options
author | Chris Apers | 2004-09-12 12:02:17 +0000 |
---|---|---|
committer | Chris Apers | 2004-09-12 12:02:17 +0000 |
commit | f2cc2c809f6f2812aa07091554fb6522c5bd34da (patch) | |
tree | 8669db9c0243768ec7aed67e0024582973846dd6 /backends | |
parent | 3a89406b76efee69496d1620fc5111949ff11e00 (diff) | |
download | scummvm-rg350-f2cc2c809f6f2812aa07091554fb6522c5bd34da.tar.gz scummvm-rg350-f2cc2c809f6f2812aa07091554fb6522c5bd34da.tar.bz2 scummvm-rg350-f2cc2c809f6f2812aa07091554fb6522c5bd34da.zip |
Use the new exit(...) function
svn-id: r15031
Diffstat (limited to 'backends')
-rw-r--r-- | backends/PalmOS/Src/extend.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/backends/PalmOS/Src/extend.cpp b/backends/PalmOS/Src/extend.cpp index 12676b8789..d2054ac65e 100644 --- a/backends/PalmOS/Src/extend.cpp +++ b/backends/PalmOS/Src/extend.cpp @@ -27,13 +27,15 @@ #include "globals.h" #include "starterrsc.h" -#include "armnative.h" +#include "arm/native.h" const Char *SCUMMVM_SAVEPATH = "/PALM/Programs/ScummVM/Saved/"; void PalmFatalError(const Char *err) { + WinSetDrawWindow(WinGetDisplayWindow()); WinPalette(winPaletteSetToDefault,0,0,0); + // unlock to show the alert box if (gVars->screenLocked) WinScreenUnlock(); @@ -42,7 +44,10 @@ void PalmFatalError(const Char *err) { WinEraseWindow(); FrmCustomAlert(FrmFatalErrorAlert, err, 0,0); - SysReset(); + + // relock to prevent crash unloading gfx mode + if (gVars->screenLocked) + WinScreenLock(winLockDontCare); } @@ -139,4 +144,3 @@ void _PnoFree(PnoDescriptor *pnoP, MemPtr armP) { MemPtrUnlock(armP); DmReleaseResource(armH); } - |