diff options
author | Torbjörn Andersson | 2009-12-31 18:25:35 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-12-31 18:25:35 +0000 |
commit | 6d879f15b7d30b623ebf66ff79e801f6ad5a017c (patch) | |
tree | f2143c26f8d6432c1a47a0bfd5f7894230a06847 /engines | |
parent | e56dedec3ff64ce21a2868b545d8e99ea5d21ee4 (diff) | |
download | scummvm-rg350-6d879f15b7d30b623ebf66ff79e801f6ad5a017c.tar.gz scummvm-rg350-6d879f15b7d30b623ebf66ff79e801f6ad5a017c.tar.bz2 scummvm-rg350-6d879f15b7d30b623ebf66ff79e801f6ad5a017c.zip |
Reading the whole buffer at once should be more efficient than reading it one
byte at a time.
svn-id: r46804
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/video/qdm2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mohawk/video/qdm2.cpp b/engines/mohawk/video/qdm2.cpp index 23a09f05d1..f5d4af8aed 100644 --- a/engines/mohawk/video/qdm2.cpp +++ b/engines/mohawk/video/qdm2.cpp @@ -2961,8 +2961,7 @@ int QDM2Stream::qdm2_decodeFrame(Common::SeekableReadStream *in) { 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 |