mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 18:37:01 +00:00
SCI: Initialize pixmap to transparency before decoding cel RLE data. This
fixes some of the views in KQ6. svn-id: r40132
This commit is contained in:
parent
6ed9adab92
commit
204174180d
@ -68,6 +68,10 @@ static int decompress_sci_view(int id, int loop, int cel, byte *resource, byte *
|
||||
int writepos = mirrored ? xl : 0;
|
||||
int linebase = 0;
|
||||
|
||||
// For some cels the RLE data ends at the last non-transparent pixel,
|
||||
// so we initialize the whole pixmap to transparency first
|
||||
memset(dest, color_key, pixmap_size);
|
||||
|
||||
while ((mirrored ? linebase < pixmap_size : writepos < pixmap_size) && literal_pos < size && runlength_pos < size) {
|
||||
int op = resource[runlength_pos];
|
||||
int bytes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user