[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/arm native.h,1.5,1.6 proc3.cpp,1.4,1.5

Max Horn fingolfin at users.sourceforge.net
Sun May 15 03:41:05 CEST 2005


Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/arm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13830/backends/PalmOS/Src/arm

Modified Files:
	native.h proc3.cpp 
Log Message:
Replaced global revBitMask array with a macro

Index: native.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/arm/native.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- native.h	20 Dec 2004 17:33:40 -0000	1.5
+++ native.h	15 May 2005 10:40:27 -0000	1.6
@@ -96,7 +96,6 @@
 
 typedef struct {
 	void *v1; // struct v1 *
-	const byte *revBitMask;	
 	
 	const byte *_srcptr;
 	int _height;

Index: proc3.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/arm/proc3.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- proc3.cpp	20 Dec 2004 17:33:40 -0000	1.4
+++ proc3.cpp	15 May 2005 10:40:27 -0000	1.5
@@ -14,7 +14,6 @@
 	
 	SETPTRV	(V1CodecType *	, v1, v1comp				)
 
-	SETPTR	(const byte *	,revBitMask					)
 	SETPTR	(const byte *	,_srcptr					)
 	SET32	(int			,_height					)
 	SET8	(byte			,_scaleIndexX				)
@@ -60,7 +59,7 @@
 	height = _height;
 
 	scaleytab = &v1.scaletable[_scaleIndexY];
-	maskbit = revBitMask[v1.x & 7];
+	maskbit = revBitMask(v1.x & 7);
 	mask = v1.mask_ptr + v1.x / 8;
 
 	if (len)
@@ -108,7 +107,7 @@
 					if (v1.x < 0 || v1.x >= _out_w)
 						//return _scaleIndexX;
 						goto end_jump;
-					maskbit = revBitMask[v1.x & 7];
+					maskbit = revBitMask(v1.x & 7);
 					v1.destptr += v1.scaleXstep;
 				}
 				_scaleIndexX += v1.scaleXstep;





More information about the Scummvm-git-logs mailing list