From 687ba54646b8b6b51597b3f11964543d9233eaa3 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 27 Sep 2024 00:33:34 +0200 Subject: sixel: reset chunk on transparency this was causing weird artifacts --- adapter/img/sixel.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'adapter/img/sixel.nim') 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) -- cgit 1.4.1-2-gfad0