aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-09 18:40:04 -0400
committerPaul Gilbert2015-08-09 18:40:04 -0400
commitb07c56923bd50f3d0948f2a4d00672e5f85f637f (patch)
tree70bc9f27fa0d4913711ed521e436502373fa6f50
parent5a7cb98ec3d6d6b6c2d0059529d2d4b8c3d67e4b (diff)
downloadscummvm-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.cpp3
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,