diff options
author | Paul Gilbert | 2009-09-26 04:13:44 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-09-26 04:13:44 +0000 |
commit | 7f1b50f300997a90fa5a66d8e741cd9d0a535231 (patch) | |
tree | 42a48b26074f0107c4d48b72b6f0a933867ae2c7 /engines | |
parent | 73a4b7857fd7daea46c148096cf7ba945a3d6b2e (diff) | |
download | scummvm-rg350-7f1b50f300997a90fa5a66d8e741cd9d0a535231.tar.gz scummvm-rg350-7f1b50f300997a90fa5a66d8e741cd9d0a535231.tar.bz2 scummvm-rg350-7f1b50f300997a90fa5a66d8e741cd9d0a535231.zip |
Dirty rects fix for pixels remaining on screen changes
svn-id: r44371
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/gfxModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp index 798812577f..cb73ff0ae2 100644 --- a/engines/cruise/gfxModule.cpp +++ b/engines/cruise/gfxModule.cpp @@ -362,13 +362,13 @@ void switchBackground(const byte *newBg) { } 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))); } } |