[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.141,1.142
Chris Apers
chrilith at users.sourceforge.net
Sun Sep 12 03:49:03 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2902
Modified Files:
costume.cpp
Log Message:
PalmOS : ARM optimized proc3 function
Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- costume.cpp 8 Sep 2004 21:14:12 -0000 1.141
+++ costume.cpp 12 Sep 2004 10:48:04 -0000 1.142
@@ -26,6 +26,11 @@
#include "scumm/costume.h"
#include "scumm/sound.h"
+#if defined(__PALM_OS__)
+#include "arm/native.h"
+#include "arm/macros.h"
+#endif
+
namespace Scumm {
const byte revBitMask[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
@@ -399,6 +404,27 @@
#undef MASK_AT
void CostumeRenderer::proc3() {
+#ifdef __PALM_OS__
+ ARM_START(CostumeProc3Type)
+ ARM_ADDP(v1)
+ ARM_ADDM(revBitMask)
+ ARM_ADDM(_srcptr)
+ ARM_ADDM(_height)
+ ARM_ADDM(_scaleIndexX)
+ ARM_ADDM(_scaleIndexY)
+ ARM_ADDM(_scaleX)
+ ARM_ADDM(_scaleY)
+ ARM_ADDM(_numStrips)
+ ARM_ADDM(_outwidth)
+ ARM_ADDM(_outheight)
+ ARM_ADDM(_shadow_mode)
+ ARM_ADDM(_shadow_table)
+ ARM_ADDV(_vm_proc_special_palette, _vm->_proc_special_palette)
+ ARM_ADDM(_palette)
+ PCE_CALL_RETURN(PNO_COSTUMEPROC3, ARM_DATA(), _scaleIndexX)
+ ARM_END()
+#endif
+
const byte *mask, *src;
byte *dst;
byte len, maskbit;
@@ -839,4 +865,3 @@
_GEND
#endif
-
More information about the Scummvm-git-logs
mailing list