aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-11 16:58:54 +0200
committerGitHub2016-09-11 16:58:54 +0200
commit0733cf65ba8f6babdf35547b49cd2d57c9daf646 (patch)
tree61c24edbc0a1080711c93c674b9848f4a16efb50 /engines/macventure
parent49bc276ea3e297c23098d4f0e6ab331f0b89f6ee (diff)
parent08143af48293b007027d11271d3f66f7ad3107e6 (diff)
downloadscummvm-rg350-0733cf65ba8f6babdf35547b49cd2d57c9daf646.tar.gz
scummvm-rg350-0733cf65ba8f6babdf35547b49cd2d57c9daf646.tar.bz2
scummvm-rg350-0733cf65ba8f6babdf35547b49cd2d57c9daf646.zip
Merge pull request #826 from dreammaster/indeo
IMAGE: Indeo 4 & 5 decoders
Diffstat (limited to 'engines/macventure')
-rw-r--r--engines/macventure/text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp
index b4d67a1306..d8e18fffdf 100644
--- a/engines/macventure/text.cpp
+++ b/engines/macventure/text.cpp
@@ -50,7 +50,7 @@ TextAsset::TextAsset(MacVentureEngine *engine, ObjID objid, ObjID source, ObjID
void TextAsset::decodeOld() {
Common::SeekableReadStream *res = _container->getItem(_id);
uint16 strLen = res->readUint16BE();
- Common::BitStream32BELSB stream(res, true);
+ Common::BitStream32BELSB stream(res, DisposeAfterUse::YES);
char *str = new char[strLen + 1];
bool lowercase = false;
char c;
@@ -114,7 +114,7 @@ void TextAsset::decodeOld() {
void TextAsset::decodeHuffman() {
_decoded = Common::String("");
Common::SeekableReadStream *res = _container->getItem(_id);
- Common::BitStream8MSB stream(res, true);
+ Common::BitStream8MSB stream(res, DisposeAfterUse::YES);
uint16 strLen = 0;
if (stream.getBit()) {
strLen = stream.getBits(15);