mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
SHERLOCK: RT: Fix erasing background of scaled images with offsets
This commit is contained in:
parent
21028131cf
commit
11e327c4e7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user