diff options
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.cpp | 12 | ||||
| -rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.h | 2 | ||||
| -rw-r--r-- | backends/platform/PalmOS/Src/os5_gfx.cpp | 1 | ||||
| -rw-r--r-- | backends/platform/PalmOS/Src/zodiac_gfx.cpp | 1 | 
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);  | 
