[Scummvm-cvs-logs] CVS: scummvm/scumm bomp.cpp,2.17,2.18

Max Horn fingolfin at users.sourceforge.net
Sun Apr 4 11:10:00 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14291

Modified Files:
	bomp.cpp 
Log Message:
let compiler optimize code better <g>

Index: bomp.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/bomp.cpp,v
retrieving revision 2.17
retrieving revision 2.18
diff -u -d -r2.17 -r2.18
--- bomp.cpp	31 Jan 2004 16:49:52 -0000	2.17
+++ bomp.cpp	4 Apr 2004 17:56:30 -0000	2.18
@@ -195,7 +195,6 @@
 void ScummEngine::drawBomp(const BompDrawData &bd, bool mirror) {
 	const byte *src;
 	byte *dst;
-	byte maskbit;
 	byte *mask = 0;
 	byte *charset_mask;
 	Common::Rect clip;
@@ -230,7 +229,7 @@
 	src = bd.dataptr;
 	dst = bd.out + bd.y * bd.outwidth + bd.x + clip.left;
 
-	maskbit = revBitMask[(bd.x + clip.left) & 7];
+	const byte maskbit = revBitMask[(bd.x + clip.left) & 7];
 
 	// Always mask against the charset mask
 	charset_mask = getMaskBuffer(bd.x + clip.left, bd.y, 0);





More information about the Scummvm-git-logs mailing list