diff options
Diffstat (limited to 'engines/gob/surface.cpp')
| -rw-r--r-- | engines/gob/surface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/surface.cpp b/engines/gob/surface.cpp index 673d8b3a19..9de0d22939 100644 --- a/engines/gob/surface.cpp +++ b/engines/gob/surface.cpp @@ -362,9 +362,11 @@ void Surface::blitScaled(const Surface &from, int16 left, int16 top, int16 right uint16 dWidth = (uint16) floor((_width / scale).toDouble()); uint16 dHeight = (uint16) floor((_height / scale).toDouble()); + int16 clipX = ( int16) floor((x / scale).toDouble()); + int16 clipY = ( int16) floor((y / scale).toDouble()); // Clip - if (!clipBlitRect(left, top, right, bottom, x, y, dWidth, dHeight, from._width, from._height)) + if (!clipBlitRect(left, top, right, bottom, clipX, clipY, dWidth, dHeight, from._width, from._height)) return; // Area to actually copy |
