Skip to content

Commit

Permalink
SHERLOCK: RT: Fix erasing background of scaled images with offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 15, 2015
1 parent 2102813 commit 11e327c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sherlock/screen.cpp
Expand Up @@ -411,7 +411,7 @@ void Screen::flushImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, i

void Screen::flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp,
int16 *width, int16 *height, int scaleVal) {
Common::Point imgPos = pt + frame->_offset;
Common::Point imgPos(pt.x + frame->sDrawXOffset(scaleVal), pt.y + frame->sDrawYOffset(scaleVal));
Common::Rect newBounds(imgPos.x, imgPos.y, imgPos.x + frame->sDrawXSize(scaleVal),
imgPos.y + frame->sDrawYSize(scaleVal));
Common::Rect oldBounds(*xp, *yp, *xp + *width, *yp + *height);
Expand Down

0 comments on commit 11e327c

Please sign in to comment.