[Scummvm-cvs-logs] SF.net SVN: scummvm: [32218] scummvm/trunk/engines/gob/video.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Thu May 22 23:26:57 CEST 2008


Revision: 32218
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32218&view=rev
Author:   drmccoy
Date:     2008-05-22 14:26:56 -0700 (Thu, 22 May 2008)

Log Message:
-----------
Fixing a valgrind warning

Modified Paths:
--------------
    scummvm/trunk/engines/gob/video.cpp

Modified: scummvm/trunk/engines/gob/video.cpp
===================================================================
--- scummvm/trunk/engines/gob/video.cpp	2008-05-22 19:49:39 UTC (rev 32217)
+++ scummvm/trunk/engines/gob/video.cpp	2008-05-22 21:26:56 UTC (rev 32218)
@@ -183,7 +183,7 @@
 		int screenX = _screenDeltaX;
 		int screenY = _screenDeltaY;
 		int screenWidth = MIN<int>(_surfWidth, _vm->_width);
-		int screenHeight = MIN<int>(_surfHeight + _screenDeltaY - _splitHeight2, _vm->_height);
+		int screenHeight = MIN<int>(_surfHeight - _splitHeight2, _vm->_height);
 
 		g_system->copyRectToScreen(_vm->_global->_primarySurfDesc->getVidMem() + screenOffset,
 				_surfWidth, screenX, screenY, screenWidth, screenHeight);


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