From 9b31b9c21439e1b319d52ba18e6c2c391d39ff6c Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 23 Jan 2011 20:16:24 +0000 Subject: GOB: Fix a clipping issue svn-id: r55481 --- engines/gob/surface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3