diff options
author | Gregory Montoir | 2007-01-30 20:43:39 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-01-30 20:43:39 +0000 |
commit | b4bebad6f0c3ab23b6992575c9fee88ace8f49d2 (patch) | |
tree | 01f589722f7fb8774d09e91fadd748ae4c5c103c /engines/scumm/smush | |
parent | cb258bee24b1d725b1cc7e17727498094fa8aacf (diff) | |
download | scummvm-rg350-b4bebad6f0c3ab23b6992575c9fee88ace8f49d2.tar.gz scummvm-rg350-b4bebad6f0c3ab23b6992575c9fee88ace8f49d2.tar.bz2 scummvm-rg350-b4bebad6f0c3ab23b6992575c9fee88ace8f49d2.zip |
minor simplification
svn-id: r25289
Diffstat (limited to 'engines/scumm/smush')
-rw-r--r-- | engines/scumm/smush/codec47.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/engines/scumm/smush/codec47.cpp b/engines/scumm/smush/codec47.cpp index ba09609c75..443d17becb 100644 --- a/engines/scumm/smush/codec47.cpp +++ b/engines/scumm/smush/codec47.cpp @@ -156,27 +156,19 @@ void Codec47Decoder::makeTablesInterpolation(int param) { if (param == 8) { table47_1 = codec47_table_big1; table47_2 = codec47_table_big2; - ptr = _tableBig + 384; + ptr = _tableBig; for (i = 0; i < 256; i++) { - *ptr = 0; - ptr += 388; - } - ptr = _tableBig + 385; - for (i = 0; i < 256; i++) { - *ptr = 0; + ptr[384] = 0; + ptr[385] = 0; ptr += 388; } } else if (param == 4) { table47_1 = codec47_table_small1; table47_2 = codec47_table_small2; - ptr = _tableSmall + 96; - for (i = 0; i < 256; i++) { - *ptr = 0; - ptr += 128; - } - ptr = _tableSmall + 97; + ptr = _tableSmall; for (i = 0; i < 256; i++) { - *ptr = 0; + ptr[96] = 0; + ptr[97] = 0; ptr += 128; } } else { |