This commit is contained in:
Matthew 2025-08-20 03:44:27 +10:00
parent 482c0db8b2
commit 79d128c872

View File

@ -180,7 +180,7 @@ CreateAtlas(Arena* arena, FontFace font, f32 size, u32 dimension)
} }
} }
Glyph* g = atlas.atlas.glyphs.ptr + char_count; Glyph* g = atlas.atlas.glyphs.ptr + char_code;
g.ch = cast(dchar)char_code; g.ch = cast(dchar)char_code;
g.advance = cast(f32)(glyph.advance.x >> 6); g.advance = cast(f32)(glyph.advance.x >> 6);