aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/gfxModule.cpp4
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)));
}
}