diff options
author | Chris Apers | 2007-05-01 09:41:35 +0000 |
---|---|---|
committer | Chris Apers | 2007-05-01 09:41:35 +0000 |
commit | 3e3a808610ef2850c21147e436c26b33aa17cbee (patch) | |
tree | b0509a3259a357c57c5e9e35b193e96483997515 /backends/platform | |
parent | b78bf3a8b37155d649cd5afc99e73d6f3ddc7e3f (diff) | |
download | scummvm-rg350-3e3a808610ef2850c21147e436c26b33aa17cbee.tar.gz scummvm-rg350-3e3a808610ef2850c21147e436c26b33aa17cbee.tar.bz2 scummvm-rg350-3e3a808610ef2850c21147e436c26b33aa17cbee.zip |
Cleanup, prevent change between 68k and ARM code
Added two more required functions for T3
svn-id: r26692
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.cpp | 20 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/native/oscalls.h | 14 |
2 files changed, 28 insertions, 6 deletions
diff --git a/backends/platform/PalmOS/Src/native/oscalls.cpp b/backends/platform/PalmOS/Src/native/oscalls.cpp index 4520d81c20..403eec40ab 100644 --- a/backends/platform/PalmOS/Src/native/oscalls.cpp +++ b/backends/platform/PalmOS/Src/native/oscalls.cpp @@ -29,19 +29,33 @@ GlobalsType global; PACE_CLASS_WRAPPER(Err) - StatShow_68k(void) { + __68k_StatShow(void) { PACE_PIN_EXEC_NP(pinStatShow, Err) } PACE_CLASS_WRAPPER(Err) - StatHide_68k(void) { + __68k_StatHide(void) { PACE_PIN_EXEC_NP(pinStatHide, Err) } PACE_CLASS_WRAPPER(Err) - PINSetInputAreaState_68k(UInt16 state) { + __68k_PINSetInputAreaState(UInt16 state) { PACE_PARAMS_INIT() PACE_PARAMS_ADD16(state) PACE_PARAMS_END() PACE_PIN_EXEC(pinPINSetInputAreaState, Err) } + +PACE_CLASS_WRAPPER(Err) + __68k_SysSetOrientation(UInt16 orientation) { + PACE_PARAMS_INIT() + PACE_PARAMS_ADD16(orientation) + PACE_PARAMS_END() + PACE_PIN_EXEC(pinSysSetOrientation, Err) +} + +PACE_CLASS_WRAPPER(UInt16) + __68k_SysGetOrientation(void) { + PACE_PIN_EXEC_NP(pinSysGetOrientation, UInt16) +} + diff --git a/backends/platform/PalmOS/Src/native/oscalls.h b/backends/platform/PalmOS/Src/native/oscalls.h index ae8f989337..0fb030b64a 100644 --- a/backends/platform/PalmOS/Src/native/oscalls.h +++ b/backends/platform/PalmOS/Src/native/oscalls.h @@ -29,9 +29,17 @@ extern "C" { #endif -Err StatShow_68k(); -Err StatHide_68k(); -Err PINSetInputAreaState_68k(UInt16 state); +#ifdef PALMOS_ARM +# define __68K(a) __68k_##a +#else +# define __68K(a) a +#endif + +Err __68k_StatShow(); +Err __68k_StatHide(); +Err __68k_PINSetInputAreaState(UInt16 state); +Err __68k_SysSetOrientation(UInt16 orientation); +UInt16 __68k_SysGetOrientation(void); #ifdef __cplusplus } |