[Scummvm-cvs-logs] SF.net SVN: scummvm: [25289] scummvm/trunk/engines/scumm/smush/codec47.cpp
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Tue Jan 30 21:43:39 CET 2007
Revision: 25289
http://scummvm.svn.sourceforge.net/scummvm/?rev=25289&view=rev
Author: cyx
Date: 2007-01-30 12:43:39 -0800 (Tue, 30 Jan 2007)
Log Message:
-----------
minor simplification
Modified Paths:
--------------
scummvm/trunk/engines/scumm/smush/codec47.cpp
Modified: scummvm/trunk/engines/scumm/smush/codec47.cpp
===================================================================
--- scummvm/trunk/engines/scumm/smush/codec47.cpp 2007-01-30 20:40:06 UTC (rev 25288)
+++ scummvm/trunk/engines/scumm/smush/codec47.cpp 2007-01-30 20:43:39 UTC (rev 25289)
@@ -156,29 +156,21 @@
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[384] = 0;
+ ptr[385] = 0;
ptr += 388;
}
- ptr = _tableBig + 385;
- for (i = 0; i < 256; i++) {
- *ptr = 0;
- ptr += 388;
- }
} else if (param == 4) {
table47_1 = codec47_table_small1;
table47_2 = codec47_table_small2;
- ptr = _tableSmall + 96;
+ ptr = _tableSmall;
for (i = 0; i < 256; i++) {
- *ptr = 0;
+ ptr[96] = 0;
+ ptr[97] = 0;
ptr += 128;
}
- ptr = _tableSmall + 97;
- for (i = 0; i < 256; i++) {
- *ptr = 0;
- ptr += 128;
- }
} else {
error("Codec47Decoder::makeTablesInterpolation: unknown param %d", param);
}
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