Skip to content

Commit

Permalink
SHERLOCK: RT: Fix drawing scaled images with image offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 9, 2015
1 parent 5a7cb98 commit b07c569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/sherlock/surface.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit b07c569

Please sign in to comment.