[Scummvm-cvs-logs] SF.net SVN: scummvm: [26692] scummvm/trunk/backends/platform/PalmOS/Src/ native
chrilith at users.sourceforge.net
chrilith at users.sourceforge.net
Tue May 1 11:41:38 CEST 2007
Revision: 26692
http://scummvm.svn.sourceforge.net/scummvm/?rev=26692&view=rev
Author: chrilith
Date: 2007-05-01 02:41:35 -0700 (Tue, 01 May 2007)
Log Message:
-----------
Cleanup, prevent change between 68k and ARM code
Added two more required functions for T3
Modified Paths:
--------------
scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.cpp
scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.h
Modified: scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.cpp
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.cpp 2007-05-01 09:39:46 UTC (rev 26691)
+++ scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.cpp 2007-05-01 09:41:35 UTC (rev 26692)
@@ -29,19 +29,33 @@
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)
+}
+
Modified: scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.h
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.h 2007-05-01 09:39:46 UTC (rev 26691)
+++ scummvm/trunk/backends/platform/PalmOS/Src/native/oscalls.h 2007-05-01 09:41:35 UTC (rev 26692)
@@ -29,10 +29,18 @@
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
}
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list