Have std/gif update an image_buffer's dirty_rect

This commit is contained in:
Nigel Tao committed 2018-05-24 11:29:16 +10:00
1 parent 34cfc3f863
commit 5e856540bd
18 files changed
+869 -101

No files matched your search

+9
View File
@@ -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][:])
}