aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2012-08-27 12:30:02 +0200
committerAlyssa Milburn2012-08-27 12:30:02 +0200
commit037920bf76bbf9320b5a96d8f98720e253a0956e (patch)
tree352d48aa9a49bafbd8215c76a68859c3b6bd0841 /engines
parentaddca5d8567717bec3015f7fd0d99a707f96288a (diff)
downloadscummvm-rg350-037920bf76bbf9320b5a96d8f98720e253a0956e.tar.gz
scummvm-rg350-037920bf76bbf9320b5a96d8f98720e253a0956e.tar.bz2
scummvm-rg350-037920bf76bbf9320b5a96d8f98720e253a0956e.zip
TONY: Fix width of flipped dirty rects.
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/gfxcore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index 806f4d07bb..406ed8043b 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -931,7 +931,7 @@ void RMGfxSourceBuffer8RLE::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPri
width = x1;
// Specify the drawn area
- bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1, y1 + height));
+ bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1 + 1, y1 + height));
for (y = 0; y < height; y++) {
// Decompression
@@ -1725,7 +1725,7 @@ void RMGfxSourceBuffer8AA::drawAA(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *pri
width = x1;
// Specify the drawn area
- bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1, y1 + height));
+ bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1 + 1, y1 + height));
} else {
// Specify the drawn area
bigBuf.addDirtyRect(Common::Rect(x1, y1, x1 + width, y1 + height));