From 5d7caf3ca99d281ae9d37d25c1ee206b45575f64 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 3 Oct 2009 08:59:11 +0000 Subject: Added a +1 for dirty rectangle calculation so final column of changed area is included svn-id: r44551 --- engines/cruise/gfxModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3