[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.85,2.86
Max Horn
fingolfin at users.sourceforge.net
Sat May 10 14:24:07 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv18532
Modified Files:
gfx.cpp
Log Message:
fixed operator precedence (thanks MadMoose)
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.85
retrieving revision 2.86
diff -u -d -r2.85 -r2.86
--- gfx.cpp 10 May 2003 18:33:04 -0000 2.85
+++ gfx.cpp 10 May 2003 21:23:17 -0000 2.86
@@ -950,8 +950,8 @@
_mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + (y * _numStrips + x);
- const int left = stripnr << 3;
- const int right = left + numstrip << 3;
+ const int left = (stripnr << 3);
+ const int right = left + (numstrip << 3);
byte *dst = bgbak_ptr;
byte *src = smap_ptr;
byte color = 0, data = 0;
More information about the Scummvm-git-logs
mailing list