diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-27 00:33:34 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-27 00:34:43 +0200 |
commit | 687ba54646b8b6b51597b3f11964543d9233eaa3 (patch) | |
tree | 1af4a50b726eed3caef7c15ba3cb93534277caa8 /adapter/img/sixel.nim | |
parent | 9b5e0ee59220e490d40aac6d53ad1ec5714a6ff1 (diff) | |
download | chawan-687ba54646b8b6b51597b3f11964543d9233eaa3.tar.gz |
sixel: reset chunk on transparency
this was causing weird artifacts
Diffstat (limited to 'adapter/img/sixel.nim')
-rw-r--r-- | adapter/img/sixel.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/adapter/img/sixel.nim b/adapter/img/sixel.nim index 676197bf..beaac144 100644 --- a/adapter/img/sixel.nim +++ b/adapter/img/sixel.nim @@ -422,6 +422,7 @@ proc encode(img: openArray[RGBAColorBE]; width, height, offx, offy, cropw: int; if c2.a < 50: # transparent let diff = (int32(c2.a), 0i32, 0i32, 0i32) dither.fs(j, diff) + chunk = nil continue var diff: DitherDiff let c = root.getColor(c2, nodes, diff) |