aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-15 07:19:42 -0500
committerPaul Gilbert2015-02-15 07:19:42 -0500
commit51561c80c0002ea3f59bc513592f04c656d32a65 (patch)
tree274bc90ee2b6edba75940fa3f9f5a50fc1d9be70
parent2c9ad1ee9b439998b2dac178d295ce3f328b41ae (diff)
downloadscummvm-rg350-51561c80c0002ea3f59bc513592f04c656d32a65.tar.gz
scummvm-rg350-51561c80c0002ea3f59bc513592f04c656d32a65.tar.bz2
scummvm-rg350-51561c80c0002ea3f59bc513592f04c656d32a65.zip
MADS: Fix left edge screen clipping for non-scaled flipped sprites
-rw-r--r--engines/mads/msurface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/msurface.cpp b/engines/mads/msurface.cpp
index d8d01f307c..cc12442db1 100644
--- a/engines/mads/msurface.cpp
+++ b/engines/mads/msurface.cpp
@@ -308,6 +308,9 @@ void MSurface::copyFrom(MSurface *src, const Common::Point &destPos, int depth,
if (!copyRect.isValidRect())
return;
+ if (flipped)
+ copyRect.moveTo(0, copyRect.top);
+
byte *data = src->getData();
byte *srcPtr = data + (src->getWidth() * copyRect.top + copyRect.left);
byte *destPtr = (byte *)pixels + (destY * pitch) + destX;