diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/PalmOS/Src/be_os5.h | 2 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/os5_gfx.cpp | 6 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/zodiac_gfx.cpp | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/backends/platform/PalmOS/Src/be_os5.h b/backends/platform/PalmOS/Src/be_os5.h index bb38c51ca6..c4d4560b19 100644 --- a/backends/platform/PalmOS/Src/be_os5.h +++ b/backends/platform/PalmOS/Src/be_os5.h @@ -144,7 +144,7 @@ private: void clearSoundCallback(); protected: - UInt16 _sysOldCoord, _sysOldOrientation; + UInt16 _sysOldCoord, _sysOldOrientation, _sysOldTriggerState; Boolean _stretched, _cursorPaletteDisabled; enum { diff --git a/backends/platform/PalmOS/Src/os5_gfx.cpp b/backends/platform/PalmOS/Src/os5_gfx.cpp index bd91be628c..16ca267389 100644 --- a/backends/platform/PalmOS/Src/os5_gfx.cpp +++ b/backends/platform/PalmOS/Src/os5_gfx.cpp @@ -71,8 +71,10 @@ void OSystem_PalmOS5::load_gfx_mode() { if (OPTIONS_TST(kOptModeRotatable)) { _sysOldOrientation = __68K(SysGetOrientation()); + _sysOldTriggerState = __68K(PINGetInputTriggerState()); __68K(SysSetOrientation(sysOrientationLandscape)); __68K(SysSetOrientationTriggerState(sysOrientationTriggerDisabled)); + __68K(PINSetInputTriggerState(pinInputTriggerDisabled)); } gVars->indicator.on = RGBToColor(0,255,0); @@ -178,8 +180,10 @@ void OSystem_PalmOS5::unload_gfx_mode() { WinScreenMode(winScreenModeSet, NULL, NULL, &depth, NULL); clearScreen(); - if (OPTIONS_TST(kOptModeRotatable)) + if (OPTIONS_TST(kOptModeRotatable)) { + __68K(PINSetInputTriggerState(_sysOldTriggerState)); __68K(SysSetOrientation(_sysOldOrientation)); + } WinSetCoordinateSystem(_sysOldCoord); } diff --git a/backends/platform/PalmOS/Src/zodiac_gfx.cpp b/backends/platform/PalmOS/Src/zodiac_gfx.cpp index 7b59b1f8d1..0c70aa9fe4 100644 --- a/backends/platform/PalmOS/Src/zodiac_gfx.cpp +++ b/backends/platform/PalmOS/Src/zodiac_gfx.cpp @@ -66,8 +66,10 @@ void OSystem_PalmZodiac::load_gfx_mode() { WinScreenMode(winScreenModeSet, NULL, NULL, &depth, NULL); _sysOldOrientation = SysGetOrientation(); + _sysOldTriggerState = PINGetInputTriggerState(); SysSetOrientation(sysOrientationLandscape); SysSetOrientationTriggerState(sysOrientationTriggerDisabled); + PINSetInputTriggerState(pinInputTriggerDisabled); gVars->indicator.on = RGBToColor(0,255,0); gVars->indicator.off = RGBToColor(0,0,0); @@ -190,6 +192,7 @@ void OSystem_PalmZodiac::unload_gfx_mode() { MemPtrFree(_offScreenP); + PINSetInputTriggerState(_sysOldTriggerState); SysSetOrientation(_sysOldOrientation); StatShow(); PINSetInputAreaState(pinInputAreaOpen); |