aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2007-09-01 17:47:48 +0000
committerChris Apers2007-09-01 17:47:48 +0000
commit4d7f64e37fba050e437caff204c88cf4ec9a8697 (patch)
tree82e8a212c71af346ae44b2f9ce2e8dd9e73fb85e
parentc499dca50382b859d265219db193dcf6d2e60c03 (diff)
downloadscummvm-rg350-4d7f64e37fba050e437caff204c88cf4ec9a8697.tar.gz
scummvm-rg350-4d7f64e37fba050e437caff204c88cf4ec9a8697.tar.bz2
scummvm-rg350-4d7f64e37fba050e437caff204c88cf4ec9a8697.zip
Prevent orientation change
svn-id: r28796
-rw-r--r--backends/platform/PalmOS/Src/native/oscalls.cpp12
-rw-r--r--backends/platform/PalmOS/Src/native/oscalls.h2
-rw-r--r--backends/platform/PalmOS/Src/os5_gfx.cpp1
-rw-r--r--backends/platform/PalmOS/Src/zodiac_gfx.cpp1
4 files changed, 16 insertions, 0 deletions
diff --git a/backends/platform/PalmOS/Src/native/oscalls.cpp b/backends/platform/PalmOS/Src/native/oscalls.cpp
index f15a1ef781..68cfb0eef5 100644
--- a/backends/platform/PalmOS/Src/native/oscalls.cpp
+++ b/backends/platform/PalmOS/Src/native/oscalls.cpp
@@ -60,3 +60,15 @@ PACE_CLASS_WRAPPER(UInt16)
PACE_PIN_EXEC_NP(pinSysGetOrientation, UInt16)
}
+PACE_CLASS_WRAPPER(Err)
+ __68k_SysSetOrientationTriggerState(UInt16 triggerState) {
+ PACE_PARAMS_INIT()
+ PACE_PARAMS_ADD16(triggerState)
+ PACE_PARAMS_END()
+ PACE_PIN_EXEC(pinSysSetOrientationTriggerState, Err)
+}
+
+PACE_CLASS_WRAPPER(UInt16)
+ __68k_SysGetOrientationTriggerState(void) {
+ PACE_PIN_EXEC_NP(pinSysGetOrientationTriggerState, UInt16)
+}
diff --git a/backends/platform/PalmOS/Src/native/oscalls.h b/backends/platform/PalmOS/Src/native/oscalls.h
index cc35eeaf28..2b4b93488f 100644
--- a/backends/platform/PalmOS/Src/native/oscalls.h
+++ b/backends/platform/PalmOS/Src/native/oscalls.h
@@ -41,6 +41,8 @@ Err __68k_StatHide();
Err __68k_PINSetInputAreaState(UInt16 state);
Err __68k_SysSetOrientation(UInt16 orientation);
UInt16 __68k_SysGetOrientation(void);
+Err __68k_SysSetOrientationTriggerState(UInt16 triggerState);
+UInt16 __68k_SysGetOrientationTriggerState(void);
#ifdef __cplusplus
}
diff --git a/backends/platform/PalmOS/Src/os5_gfx.cpp b/backends/platform/PalmOS/Src/os5_gfx.cpp
index be5d28bc56..bd91be628c 100644
--- a/backends/platform/PalmOS/Src/os5_gfx.cpp
+++ b/backends/platform/PalmOS/Src/os5_gfx.cpp
@@ -72,6 +72,7 @@ void OSystem_PalmOS5::load_gfx_mode() {
if (OPTIONS_TST(kOptModeRotatable)) {
_sysOldOrientation = __68K(SysGetOrientation());
__68K(SysSetOrientation(sysOrientationLandscape));
+ __68K(SysSetOrientationTriggerState(sysOrientationTriggerDisabled));
}
gVars->indicator.on = RGBToColor(0,255,0);
diff --git a/backends/platform/PalmOS/Src/zodiac_gfx.cpp b/backends/platform/PalmOS/Src/zodiac_gfx.cpp
index 23568ba5aa..e76c283645 100644
--- a/backends/platform/PalmOS/Src/zodiac_gfx.cpp
+++ b/backends/platform/PalmOS/Src/zodiac_gfx.cpp
@@ -71,6 +71,7 @@ void OSystem_PalmZodiac::load_gfx_mode() {
_sysOldOrientation = SysGetOrientation();
SysSetOrientation(sysOrientationLandscape);
+ SysSetOrientationTriggerState(sysOrientationTriggerDisabled);
gVars->indicator.on = RGBToColor(0,255,0);
gVars->indicator.off = RGBToColor(0,0,0);