GOB: Fix a clipping issue

svn-id: r55481
This commit is contained in:
Sven Hesse 2011-01-23 20:16:24 +00:00
parent 2f4b89e9b1
commit 9b31b9c214

View File

@ -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