[Scummvm-cvs-logs] scummvm master -> 51561c80c0002ea3f59bc513592f04c656d32a65
dreammaster
dreammaster at scummvm.org
Sun Feb 15 13:21:14 CET 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
51561c80c0 MADS: Fix left edge screen clipping for non-scaled flipped sprites
Commit: 51561c80c0002ea3f59bc513592f04c656d32a65
https://github.com/scummvm/scummvm/commit/51561c80c0002ea3f59bc513592f04c656d32a65
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-02-15T07:19:42-05:00
Commit Message:
MADS: Fix left edge screen clipping for non-scaled flipped sprites
Changed paths:
engines/mads/msurface.cpp
diff --git a/engines/mads/msurface.cpp b/engines/mads/msurface.cpp
index d8d01f3..cc12442 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;
More information about the Scummvm-git-logs
mailing list