about summary refs log tree commit diff stats
path: root/src/loader
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-20 21:28:23 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-20 22:38:33 +0200
commit7f66b5ebc88936db974e3320d77c7ec9d4ab85e6 (patch)
tree669b2c307e2ea84476d6bbfd46ef127c0fc1c6f9 /src/loader
parent2ab1e53b4bc15af3319994fdb25bb739b4b8e6db (diff)
downloadchawan-7f66b5ebc88936db974e3320d77c7ec9d4ab85e6.tar.gz
img: use stb_image, drop zlib as dependency
Now we have decoders for gif, jpeg, bmp. Also, the in-house PNG decoder
has been replaced in favor of the stbi implementation; this means we
no longer depend on zlib, since stbi comes with a built in inflate
implementation.
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/response.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/response.nim b/src/loader/response.nim
index 3834d5a9..2f624a1a 100644
--- a/src/loader/response.nim
+++ b/src/loader/response.nim
@@ -215,7 +215,7 @@ proc saveToBitmap*(response: Response; bmp: Bitmap): EmptyPromise =
   assert not response.bodyUsed
   let opaque = BitmapOpaque(bmp: bmp, idx: 0)
   let size = bmp.width * bmp.height
-  bmp.px = cast[seq[ARGBColor]](newSeqUninitialized[uint32](size))
+  bmp.px = cast[seq[RGBAColorBE]](newSeqUninitialized[uint32](size))
   response.opaque = opaque
   response.onRead = onReadBitmap
   response.bodyUsed = true