[Scummvm-cvs-logs] SF.net SVN: scummvm:[55396] scummvm/trunk/engines/toon/movie.cpp

sylvaintv at users.sourceforge.net sylvaintv at users.sourceforge.net
Fri Jan 21 23:04:43 CET 2011


Revision: 55396
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55396&view=rev
Author:   sylvaintv
Date:     2011-01-21 22:04:41 +0000 (Fri, 21 Jan 2011)

Log Message:
-----------
TOON: Fix double declaration warning

Thanks to clone2727 ;)

Modified Paths:
--------------
    scummvm/trunk/engines/toon/movie.cpp

Modified: scummvm/trunk/engines/toon/movie.cpp
===================================================================
--- scummvm/trunk/engines/toon/movie.cpp	2011-01-21 21:40:06 UTC (rev 55395)
+++ scummvm/trunk/engines/toon/movie.cpp	2011-01-21 22:04:41 UTC (rev 55396)
@@ -96,8 +96,6 @@
 bool Movie::playVideo() {
 	debugC(1, kDebugMovie, "playVideo()");
 
-	int32 x = 0;
-	int32 y = 0;
 	while (!_vm->shouldQuit() && !_decoder->endOfVideo()) {
 		if (_decoder->needsUpdate()) {
 			const Graphics::Surface *frame = _decoder->decodeNextFrame();
@@ -111,7 +109,7 @@
 					}
 					_vm->getSystem()->unlockScreen();
 				} else {
-					_vm->getSystem()->copyRectToScreen((byte *)frame->pixels, frame->pitch, x, y, frame->w, frame->h);
+					_vm->getSystem()->copyRectToScreen((byte *)frame->pixels, frame->pitch, 0, 0, frame->w, frame->h);
 				}
 			}
 			_decoder->setSystemPalette();


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