[Scummvm-cvs-logs] SF.net SVN: scummvm:[55481] scummvm/trunk/engines/gob/surface.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sun Jan 23 21:16:25 CET 2011
Revision: 55481
http://scummvm.svn.sourceforge.net/scummvm/?rev=55481&view=rev
Author: drmccoy
Date: 2011-01-23 20:16:24 +0000 (Sun, 23 Jan 2011)
Log Message:
-----------
GOB: Fix a clipping issue
Modified Paths:
--------------
scummvm/trunk/engines/gob/surface.cpp
Modified: scummvm/trunk/engines/gob/surface.cpp
===================================================================
--- scummvm/trunk/engines/gob/surface.cpp 2011-01-23 19:18:44 UTC (rev 55480)
+++ scummvm/trunk/engines/gob/surface.cpp 2011-01-23 20:16:24 UTC (rev 55481)
@@ -362,9 +362,11 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list