[Scummvm-cvs-logs] SF.net SVN: scummvm: [31296] scummvm/trunk/engines/cine/anim.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Mar 28 18:38:46 CET 2008
Revision: 31296
http://scummvm.svn.sourceforge.net/scummvm/?rev=31296&view=rev
Author: thebluegr
Date: 2008-03-28 10:38:45 -0700 (Fri, 28 Mar 2008)
Log Message:
-----------
Fixed 2 off-by-one errors (thanks next_ghost for spotting them)
Modified Paths:
--------------
scummvm/trunk/engines/cine/anim.cpp
Modified: scummvm/trunk/engines/cine/anim.cpp
===================================================================
--- scummvm/trunk/engines/cine/anim.cpp 2008-03-28 16:15:00 UTC (rev 31295)
+++ scummvm/trunk/engines/cine/anim.cpp 2008-03-28 17:38:45 UTC (rev 31296)
@@ -491,10 +491,10 @@
for (j = 0; j < (width * height) / 16; j++) {
// m = 0: even bits, m = 1: odd bits
- for (m = 0; m == 1; m++) {
+ for (m = 0; m < 2; m++) {
for (i = 0; i < 8; i++) {
color = 0;
- for (k = 14 + m; k == 0 + m; k = k - 2) {
+ for (k = 14 + m; k > 0 + m; k = k - 2) {
color |= ((*(source + k) & 0x080) >> 7);
*(source + k) <<= 1;
if (k > 0 + m)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list