aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2009-09-11 11:02:15 +0000
committerPaul Gilbert2009-09-11 11:02:15 +0000
commitbb940539605153a6d981ad787f1868db2977b7e8 (patch)
treee29e3ba77575d625cf56106cfe4d186c80d1ab1f
parent8d2482813a6672da6f98c9a2d910f8e885b9e518 (diff)
downloadscummvm-rg350-bb940539605153a6d981ad787f1868db2977b7e8.tar.gz
scummvm-rg350-bb940539605153a6d981ad787f1868db2977b7e8.tar.bz2
scummvm-rg350-bb940539605153a6d981ad787f1868db2977b7e8.zip
Bugfix for the boundaries of changing objects used for dirty rect calculations
svn-id: r44031
-rw-r--r--engines/cruise/mainDraw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/mainDraw.cpp b/engines/cruise/mainDraw.cpp
index 61e8f8d85c..fe5454d57f 100644
--- a/engines/cruise/mainDraw.cpp
+++ b/engines/cruise/mainDraw.cpp
@@ -1211,7 +1211,7 @@ void drawSprite(int width, int height, cellStruct *currentObjPtr, const uint8 *d
int y = 0;
// Flag the given area as having been changed
- gfxModuleData_addDirtyRect(Common::Rect(xs, ys, xs + width - 1, ys + height - 1));
+ gfxModuleData_addDirtyRect(Common::Rect(xs, ys, xs + width, ys + height));
cellStruct* plWork = currentObjPtr;
int workBufferSize = height * (width / 8);