[Scummvm-cvs-logs] SF.net SVN: scummvm: [22212] tools/trunk/encode_dxa.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sat Apr 29 05:20:02 CEST 2006
Revision: 22212
Author: kirben
Date: 2006-04-29 05:18:58 -0700 (Sat, 29 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22212&view=rev
Log Message:
-----------
Fix compiler warning
Modified Paths:
--------------
tools/trunk/encode_dxa.cpp
Modified: tools/trunk/encode_dxa.cpp
===================================================================
--- tools/trunk/encode_dxa.cpp 2006-04-29 12:15:23 UTC (rev 22211)
+++ tools/trunk/encode_dxa.cpp 2006-04-29 12:18:58 UTC (rev 22212)
@@ -150,8 +150,6 @@
}
void DxaEncoder::writeFrame(uint8 *frame, uint8 *palette) {
- uint8 cpalette[1024];
-
if (_framecount == 0 || memcmp(_prevpalette, palette, 768)) {
writeUint32LE(_dxa, typeCMAP);
fwrite(palette, 768, 1, _dxa);
@@ -162,6 +160,8 @@
}
#ifdef USE_ZMBV
+ uint8 cpalette[1024];
+
for (int i = 0; i < 256; i++) {
cpalette[i * 4 + 0] = palette[i * 3 + 0];
cpalette[i * 4 + 1] = palette[i * 3 + 1];
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