From 7f66b5ebc88936db974e3320d77c7ec9d4ab85e6 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 20 Jun 2024 21:28:23 +0200 Subject: 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. --- src/img/painter.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/img/painter.nim') 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: -- cgit 1.4.1-2-gfad0 med repository; edit this file 'description' to name the repository.
about summary refs log tree commit diff stats
path: root/build-release.sh
blob: 3d3377acb112b2f4c1fc4b8150835862dbe038e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13