aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screen.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2009-09-28 07:28:20 +0000
committerBenjamin Haisch2009-09-28 07:28:20 +0000
commit0335a37b053647866fe283cd630c18d65f99cdc0 (patch)
tree3fd1d7a4f1121ad1ca8a0be6bd240d9d5ec7da7f /engines/made/screen.cpp
parent6ffa6ecccff0002086bc0e7f0a032fa276bfe140 (diff)
downloadscummvm-rg350-0335a37b053647866fe283cd630c18d65f99cdc0.tar.gz
scummvm-rg350-0335a37b053647866fe283cd630c18d65f99cdc0.tar.bz2
scummvm-rg350-0335a37b053647866fe283cd630c18d65f99cdc0.zip
Fixed clipping-related bug (bug #2826036)
svn-id: r44439
Diffstat (limited to 'engines/made/screen.cpp')
-rw-r--r--engines/made/screen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index 7471743ba4..fb9e3e02a2 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -177,8 +177,8 @@ void Screen::drawSurface(Graphics::Surface *sourceSurface, int x, int y, int16 f
if (y + clipHeight > clipInfo.clipRect.bottom) {
clipHeight = clipInfo.clipRect.bottom - y;
}
-
- source = (byte*)sourceSurface->getBasePtr(startX, startY);
+
+ source = (byte*)sourceSurface->getBasePtr(0, startY);
dest = (byte*)clipInfo.destSurface->getBasePtr(x, y);
if (_vm->getGameID() != GID_RTZ)
maskp = (byte*)_maskDrawCtx.destSurface->getBasePtr(x, y);
@@ -188,10 +188,10 @@ void Screen::drawSurface(Graphics::Surface *sourceSurface, int x, int y, int16 f
if (flipX) {
linePtrAdd = -1;
- sourceAdd = sourceSurface->w - 1;
+ sourceAdd = sourceSurface->w - startX - 1;
} else {
linePtrAdd = 1;
- sourceAdd = 0;
+ sourceAdd = startX;
}
if (flipY) {