diff options
author | Paul Gilbert | 2015-08-15 16:00:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-08-15 16:00:43 -0400 |
commit | 11e327c4e7d41e01378cbdbaf339bbd09881f326 (patch) | |
tree | c68bf1fffc098740653138d1c869823d68c50428 /engines/sherlock | |
parent | 21028131cfb64538b3311b4d807cbbec14cfdcd0 (diff) | |
download | scummvm-rg350-11e327c4e7d41e01378cbdbaf339bbd09881f326.tar.gz scummvm-rg350-11e327c4e7d41e01378cbdbaf339bbd09881f326.tar.bz2 scummvm-rg350-11e327c4e7d41e01378cbdbaf339bbd09881f326.zip |
SHERLOCK: RT: Fix erasing background of scaled images with offsets
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp index 7c2b718042..4233bca0cb 100644 --- a/engines/sherlock/screen.cpp +++ b/engines/sherlock/screen.cpp @@ -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); |