From 6a13245fd9264710e1f921fe31130395f79c5beb Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Wed, 24 Sep 2025 22:49:34 +0200 Subject: [PATCH] revert ccca2be49684cdcc905d1acc0b8d2c4cb126c4b4 --- lib/ugui.c3l/src/ugui_font.c3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ugui.c3l/src/ugui_font.c3 b/lib/ugui.c3l/src/ugui_font.c3 index 9ababd4..f96a12e 100644 --- a/lib/ugui.c3l/src/ugui_font.c3 +++ b/lib/ugui.c3l/src/ugui_font.c3 @@ -113,10 +113,10 @@ fn void? Font.load(&font, String name, ZString path, uint height, float scale) font.atlas.new(font.id, ATLAS_GRAYSCALE, size, size)!; // FIXME: this crashes with O1 or greater, why?? -// // preallocate the ASCII range -// for (char c = ' '; c < '~'; c++) { -// font.get_glyph((Codepoint)c)!; -// } + // preallocate the ASCII range + for (char c = ' '; c < '~'; c++) { + font.get_glyph((Codepoint)c)!; + } } fn Glyph*? Font.get_glyph(&font, Codepoint code)