From f211a29857111a6be26b9cb0e9799ffcb7631df6 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 25 Aug 2025 06:01:36 +1000 Subject: [PATCH] fix font atlas colours --- fonts.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fonts.d b/fonts.d index 0fea40c..7e5bb88 100644 --- a/fonts.d +++ b/fonts.d @@ -175,10 +175,10 @@ CreateAtlas(Arena* arena, FontFace font, f32 size, u32 dimension) x = max_w + c; u64 offset = (y*dimension + x) * 4; - atlas.data[offset+0] = bmp.buffer[r*bmp.pitch + c]; - atlas.data[offset+1] = bmp.buffer[r*bmp.pitch + c]; - atlas.data[offset+2] = bmp.buffer[r*bmp.pitch + c]; - atlas.data[offset+3] = 255; + atlas.data[offset+0] = 255; + atlas.data[offset+1] = 255; + atlas.data[offset+2] = 255; + atlas.data[offset+3] = bmp.buffer[r*bmp.pitch + c]; } }