mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Have std/gif update an image_buffer's dirty_rect
This commit is contained in:
1 parent
34cfc3f863
commit
5e856540bd
18 files changed
+869
-101
No files matched your search
@@ -430,4 +430,13 @@ pri func decoder.decode_id_part1?(ib ptr base.image_buffer, dst base.io_writer,
|
||||
yield z
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: have a builtin btoi or "b as base.u32"?
|
||||
// TODO: p's type should be base.u32[..1]
|
||||
var p base.u32 = 0
|
||||
if this.have_lct {
|
||||
p = 1
|
||||
}
|
||||
// TODO: dirty_palette isn't always true; duration isn't always 0.
|
||||
in.ib.update!(dirty_palette:true, dirty_rect:this.frame_rect, duration:0, palette:this.palettes[p][:])
|
||||
}
|
||||
Reference in new issue
Block a user