about summary refs log tree commit diff stats
path: root/src/io/bufwriter.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-24 01:44:35 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-24 01:49:20 +0200
commit3079e91c8aa0d60223deddd46cc3e652f32f05b7 (patch)
treefe54a3d14509dcd193401ab0ffd69f21fca9828b /src/io/bufwriter.nim
parentd7085253b704f8f0e31fa1cacf82a55399565da1 (diff)
downloadchawan-3079e91c8aa0d60223deddd46cc3e652f32f05b7.tar.gz
sixel: use inline background for blending
still not really great, because inline background is a mess too
Diffstat (limited to 'src/io/bufwriter.nim')
-rw-r--r--src/io/bufwriter.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io/bufwriter.nim b/src/io/bufwriter.nim
index 3eea01fa..3bedf883 100644
--- a/src/io/bufwriter.nim
+++ b/src/io/bufwriter.nim
@@ -34,6 +34,7 @@ proc swrite*(writer: var BufferedWriter; obj: ref object)
 proc swrite*[T](writer: var BufferedWriter; o: Option[T])
 proc swrite*[T, E](writer: var BufferedWriter; o: Result[T, E])
 proc swrite*(writer: var BufferedWriter; c: ARGBColor)
+proc swrite*(writer: var BufferedWriter; c: RGBColor)
 
 const InitLen = sizeof(int) * 2
 const SizeInit = max(64, InitLen)
@@ -151,3 +152,6 @@ proc swrite*[T, E](writer: var BufferedWriter; o: Result[T, E]) =
 
 proc swrite*(writer: var BufferedWriter; c: ARGBColor) =
   writer.swrite(uint32(c))
+
+proc swrite*(writer: var BufferedWriter; c: RGBColor) =
+  writer.swrite(uint32(c))