diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-20 21:28:23 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-20 22:38:33 +0200 |
commit | 7f66b5ebc88936db974e3320d77c7ec9d4ab85e6 (patch) | |
tree | 669b2c307e2ea84476d6bbfd46ef127c0fc1c6f9 /src/img/painter.nim | |
parent | 2ab1e53b4bc15af3319994fdb25bb739b4b8e6db (diff) | |
download | chawan-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/img/painter.nim')
-rw-r--r-- | src/img/painter.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/img/painter.nim b/src/img/painter.nim index d02f3602..4e8d1f72 100644 --- a/src/img/painter.nim +++ b/src/img/painter.nim @@ -151,7 +151,7 @@ proc getCharBmp(u: uint32): Bitmap = let gx = uint64(32 + 16 * (u mod 0x100)) let gy = uint64(64 + 16 * (u div 0x100)) var fullwidth = false - const white = rgba(255, 255, 255, 255) + const white = rgba_be(255, 255, 255, 255) block loop: # hack to recognize full width characters for y in 0 ..< 16u64: |