[Scummvm-cvs-logs] SF.net SVN: scummvm:[44371] scummvm/trunk/engines/cruise/gfxModule.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Sep 26 06:13:45 CEST 2009
Revision: 44371
http://scummvm.svn.sourceforge.net/scummvm/?rev=44371&view=rev
Author: dreammaster
Date: 2009-09-26 04:13:44 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Dirty rects fix for pixels remaining on screen changes
Modified Paths:
--------------
scummvm/trunk/engines/cruise/gfxModule.cpp
Modified: scummvm/trunk/engines/cruise/gfxModule.cpp
===================================================================
--- scummvm/trunk/engines/cruise/gfxModule.cpp 2009-09-25 22:07:34 UTC (rev 44370)
+++ scummvm/trunk/engines/cruise/gfxModule.cpp 2009-09-26 04:13:44 UTC (rev 44371)
@@ -362,13 +362,13 @@
} else if ((sliceXEnd != -1) && (xp >= (sliceXEnd + 10))) {
// If more than 10 pixels have gone by without any changes, then end the slice
- gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, sliceXEnd, yp + 1));
+ gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, sliceXEnd, MIN(yp + 2, 200)));
sliceXStart = sliceXEnd = -1;
}
}
if (sliceXStart != -1)
- gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, 320, yp + 1));
+ gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, 320, MIN(yp + 2, 200)));
}
}
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