From ed42b0aca2751fa7671b883331b4cd6d05fb7951 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 12 Nov 2024 20:54:56 +0100 Subject: Fix text height (undefined variable use) --- src/graphics/text.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/graphics/text.c') diff --git a/src/graphics/text.c b/src/graphics/text.c index e872360..0280edb 100644 --- a/src/graphics/text.c +++ b/src/graphics/text.c @@ -56,6 +56,7 @@ static void mgl_text_for_each_codepoint(const mgl_text *self, codepoint_loop_cal } else if(codepoint == '\n') { kerning = 0.0f; glyph_width = 0.0f; + glyph.size = (mgl_vec2i){ (int)glyph_width, (int)self->font->character_size }; } else { if(mgl_font_get_glyph(self->font, codepoint, &glyph) == 0) { kerning = mgl_font_get_kerning(self->font, prev_codepoint, codepoint); -- cgit v1.2.3