aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2009-10-03 08:59:11 +0000
committerPaul Gilbert2009-10-03 08:59:11 +0000
commit5d7caf3ca99d281ae9d37d25c1ee206b45575f64 (patch)
tree40504f10ef4ab463ae1c7065e77abb0749e0ccf0
parent43f84746bf276106b147bc9593b2a3e3ad424e4b (diff)
downloadscummvm-rg350-5d7caf3ca99d281ae9d37d25c1ee206b45575f64.tar.gz
scummvm-rg350-5d7caf3ca99d281ae9d37d25c1ee206b45575f64.tar.bz2
scummvm-rg350-5d7caf3ca99d281ae9d37d25c1ee206b45575f64.zip
Added a +1 for dirty rectangle calculation so final column of changed area is included
svn-id: r44551
-rw-r--r--engines/cruise/gfxModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp
index 05cc5ce3bf..b8f7ef291e 100644
--- a/engines/cruise/gfxModule.cpp
+++ b/engines/cruise/gfxModule.cpp
@@ -372,7 +372,7 @@ 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, MIN(yp + 2, 200)));
+ gfxModuleData_addDirtyRect(Common::Rect(sliceXStart, yp, sliceXEnd + 1, MIN(yp + 2, 200)));
sliceXStart = sliceXEnd = -1;
}
}