Remove std/nie decoder.swizzle derived var hack

This commit is contained in:
Nigel Tao committed 2020-12-23 15:34:42 +11:00
1 parent f6d11c78da
commit 332fb46b5c
4 files changed
+30 -10

No files matched your search

-5
View File
@@ -206,11 +206,6 @@ pri func decoder.swizzle!(dst: ptr base.pixel_buffer, src: base.io_reader) base.
dst_bytes_per_row = (this.width as base.u64) * dst_bytes_per_pixel
tab = args.dst.plane(p: 0)
// TODO: this hack (to generate derived variables for args.src) shouldn't
// be necessary.
if args.src.length() <= 0 {
}
while true {
if this.dst_x == this.width {
this.dst_x = 0