mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Remove the obsolete set_palette method
This commit is contained in:
1 parent
2c7fd8058a
commit
724b136bf8
5 files changed
+30
-65
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user