[Scummvm-cvs-logs] SF.net SVN: scummvm:[46804] scummvm/trunk/engines/mohawk/video/qdm2.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Dec 31 19:25:36 CET 2009


Revision: 46804
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46804&view=rev
Author:   eriktorbjorn
Date:     2009-12-31 18:25:35 +0000 (Thu, 31 Dec 2009)

Log Message:
-----------
Reading the whole buffer at once should be more efficient than reading it one
byte at a time.

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/video/qdm2.cpp

Modified: scummvm/trunk/engines/mohawk/video/qdm2.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/video/qdm2.cpp	2009-12-31 17:43:54 UTC (rev 46803)
+++ scummvm/trunk/engines/mohawk/video/qdm2.cpp	2009-12-31 18:25:35 UTC (rev 46804)
@@ -2961,8 +2961,7 @@
 		return 0;
 	}
 
-	for(i = 0; i < _packetSize; i++)
-		_compressedData[i] = in->readByte();
+	in->read(_compressedData, _packetSize);
 	debug(1, "QDM2Stream::qdm2_decodeFrame constructed input data");
 
 	// copy old block, clear new block of output samples


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