Remove the obsolete set_palette method

This commit is contained in:
Nigel Tao committed 2018-09-08 11:11:36 +10:00
1 parent 2c7fd8058a
commit 724b136bf8
5 files changed
+30 -65

No files matched your search

+1 -3
View File
@@ -560,9 +560,7 @@ pri func decoder.decode_id_part1!??(dst ptr base.pixel_buffer, src base.io_reade
this.palettes[1][(4 * (this.gc_transparent_index as base.u32)) + 3] = 0x00
}
// TODO: remove the set_palette method. Instead, call palette and
// copy_from_slice.
args.dst.set_palette!(palette:this.palettes[this.which_palette][:])
args.dst.palette().copy_from_slice(s:this.palettes[this.which_palette][:])
// Other GIF implementations accept GIF files that aren't completely spec
// compliant. For example, the test/data/gifplayer-muybridge.gif file