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

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue Dec 16 20:55:51 CET 2008


Revision: 35395
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35395&view=rev
Author:   drmccoy
Date:     2008-12-16 19:55:51 +0000 (Tue, 16 Dec 2008)

Log Message:
-----------
Fixing the update coordinates for videos with _bytesPerPixel > 1

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

Modified: scummvm/trunk/engines/gob/coktelvideo.cpp
===================================================================
--- scummvm/trunk/engines/gob/coktelvideo.cpp	2008-12-16 18:53:26 UTC (rev 35394)
+++ scummvm/trunk/engines/gob/coktelvideo.cpp	2008-12-16 19:55:51 UTC (rev 35395)
@@ -1281,6 +1281,10 @@
 
 			int16 l = part.left, t = part.top, r = part.right, b = part.bottom;
 			if (renderFrame(l, t, r, b)) {
+				if (!_externalCodec) {
+					l /= _bytesPerPixel;
+					r /= _bytesPerPixel;
+				}
 				// Rendering succeeded, merging areas
 				state.left   = MIN(state.left,   l);
 				state.top    = MIN(state.top,    t);


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