diff options
author | Paul Gilbert | 2015-08-09 18:40:04 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-08-09 18:40:04 -0400 |
commit | b07c56923bd50f3d0948f2a4d00672e5f85f637f (patch) | |
tree | 70bc9f27fa0d4913711ed521e436502373fa6f50 | |
parent | 5a7cb98ec3d6d6b6c2d0059529d2d4b8c3d67e4b (diff) | |
download | scummvm-rg350-b07c56923bd50f3d0948f2a4d00672e5f85f637f.tar.gz scummvm-rg350-b07c56923bd50f3d0948f2a4d00672e5f85f637f.tar.bz2 scummvm-rg350-b07c56923bd50f3d0948f2a4d00672e5f85f637f.zip |
SHERLOCK: RT: Fix drawing scaled images with image offsets
-rw-r--r-- | engines/sherlock/surface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp index 9e84e290e7..98ce73ae06 100644 --- a/engines/sherlock/surface.cpp +++ b/engines/sherlock/surface.cpp @@ -101,7 +101,8 @@ void Surface::blitFrom(const Surface &src, const Common::Point &pt, const Common void Surface::transBlitFrom(const ImageFrame &src, const Common::Point &pt, bool flipped, int overrideColor, int scaleVal) { - transBlitFrom(src._frame, pt + src._offset, flipped, overrideColor, scaleVal); + Common::Point drawPt(pt.x + src.sDrawXOffset(scaleVal), pt.y + src.sDrawYOffset(scaleVal)); + transBlitFrom(src._frame, drawPt, flipped, overrideColor, scaleVal); } void Surface::transBlitFrom(const Surface &src, const Common::Point &pt, |