fix font atlas colours

This commit is contained in:
Matthew 2025-08-25 06:01:36 +10:00
parent f8d1707450
commit f211a29857

View File

@ -175,10 +175,10 @@ CreateAtlas(Arena* arena, FontFace font, f32 size, u32 dimension)
x = max_w + c; x = max_w + c;
u64 offset = (y*dimension + x) * 4; u64 offset = (y*dimension + x) * 4;
atlas.data[offset+0] = bmp.buffer[r*bmp.pitch + c]; atlas.data[offset+0] = 255;
atlas.data[offset+1] = bmp.buffer[r*bmp.pitch + c]; atlas.data[offset+1] = 255;
atlas.data[offset+2] = bmp.buffer[r*bmp.pitch + c]; atlas.data[offset+2] = 255;
atlas.data[offset+3] = 255; atlas.data[offset+3] = bmp.buffer[r*bmp.pitch + c];
} }
} }