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

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Mon Dec 22 21:35:48 CET 2008


Revision: 35491
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35491&view=rev
Author:   drmccoy
Date:     2008-12-22 20:35:48 +0000 (Mon, 22 Dec 2008)

Log Message:
-----------
Fixing the flow meter thingy in Urban Runner

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

Modified: scummvm/trunk/engines/gob/coktelvideo.cpp
===================================================================
--- scummvm/trunk/engines/gob/coktelvideo.cpp	2008-12-22 18:34:43 UTC (rev 35490)
+++ scummvm/trunk/engines/gob/coktelvideo.cpp	2008-12-22 20:35:48 UTC (rev 35491)
@@ -934,6 +934,11 @@
 	}
 
 	_flags = _stream->readUint16LE();
+
+	_scaleExternalX = 1;
+	if (!_externalCodec && !(_flags & 0x1000))
+		_scaleExternalX = _bytesPerPixel;
+
 	_partsPerFrame = _stream->readUint16LE();
 	_firstFramePos = _stream->readUint32LE();
 	_stream->skip(4); // Unknown
@@ -1112,6 +1117,8 @@
 
 void Vmd::setXY(int16 x, int16 y) {
 
+	x *= _scaleExternalX;
+
 	for (int i = 0; i < _framesCount; i++) {
 		for (int j = 0; j < _partsPerFrame; j++) {
 
@@ -1195,6 +1202,7 @@
 
 	_externalCodec = false;
 	_bytesPerPixel = 1;
+	_scaleExternalX = 1;
 	_vidMemBuffer = 0;
 }
 

Modified: scummvm/trunk/engines/gob/coktelvideo.h
===================================================================
--- scummvm/trunk/engines/gob/coktelvideo.h	2008-12-22 18:34:43 UTC (rev 35490)
+++ scummvm/trunk/engines/gob/coktelvideo.h	2008-12-22 20:35:48 UTC (rev 35491)
@@ -370,6 +370,7 @@
 
 	bool _externalCodec;
 	byte _bytesPerPixel;
+	byte _scaleExternalX;
 	byte *_vidMemBuffer;
 
 	PaletteLUT *_palLUT;


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