diff options
author | Sven Hesse | 2011-01-23 20:16:24 +0000 |
---|---|---|
committer | Sven Hesse | 2011-01-23 20:16:24 +0000 |
commit | 9b31b9c21439e1b319d52ba18e6c2c391d39ff6c (patch) | |
tree | b2c84400131e17b616bc7a9d77c45b7500caf162 /engines/gob | |
parent | 2f4b89e9b1b36cba2cc0d3923f9fa5bbbd1f0d77 (diff) | |
download | scummvm-rg350-9b31b9c21439e1b319d52ba18e6c2c391d39ff6c.tar.gz scummvm-rg350-9b31b9c21439e1b319d52ba18e6c2c391d39ff6c.tar.bz2 scummvm-rg350-9b31b9c21439e1b319d52ba18e6c2c391d39ff6c.zip |
GOB: Fix a clipping issue
svn-id: r55481
Diffstat (limited to 'engines/gob')
-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 |