mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
SCI: dont write palette in reorderView() if there is no palette :P
svn-id: r50184
This commit is contained in:
parent
0a102981f0
commit
496905dcc3
@ -574,15 +574,17 @@ void DecompressorLZW::reorderView(byte *src, byte *dest) {
|
||||
for (c = 0; c < cel_total; c++)
|
||||
decodeRLE(&rle_ptr, &pix_ptr, cc_pos[c] + 8, cc_lengths[c]);
|
||||
|
||||
*writer++ = 'P';
|
||||
*writer++ = 'A';
|
||||
*writer++ = 'L';
|
||||
if (pal_offset) {
|
||||
*writer++ = 'P';
|
||||
*writer++ = 'A';
|
||||
*writer++ = 'L';
|
||||
|
||||
for (c = 0; c < 256; c++)
|
||||
*writer++ = c;
|
||||
for (c = 0; c < 256; c++)
|
||||
*writer++ = c;
|
||||
|
||||
seeker -= 4; /* The missing four. Don't ask why. */
|
||||
memcpy(writer, seeker, 4*256 + 4);
|
||||
seeker -= 4; /* The missing four. Don't ask why. */
|
||||
memcpy(writer, seeker, 4*256 + 4);
|
||||
}
|
||||
|
||||
free(cc_pos);
|
||||
free(cc_lengths);
|
||||
|
Loading…
x
Reference in New Issue
Block a user