[Scummvm-cvs-logs] CVS: scummvm/common scaler.cpp,1.65,1.66
Eugene Sandulenko
sev at users.sourceforge.net
Sun Mar 6 03:28:58 CET 2005
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28980
Modified Files:
scaler.cpp
Log Message:
Fix bug which led to an endless loop if 1.5x scaler is fed with odd value.
Index: scaler.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- scaler.cpp 17 Feb 2005 23:00:57 -0000 1.65
+++ scaler.cpp 6 Mar 2005 11:28:10 -0000 1.66
@@ -184,7 +184,7 @@
const uint32 srcPitch2 = srcPitch * 2;
assert(((int)dstPtr & 1) == 0);
- while (height) {
+ while (height > 0) {
r = dstPtr;
for (int i = 0; i < width; i += 2, r += 6) {
uint16 color0 = *(((const uint16 *)srcPtr) + i);
More information about the Scummvm-git-logs
mailing list