From 6042e1843023e1f4e0f4c60da8458703b3bc58cf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 15 Feb 2022 23:52:21 +0100 Subject: Revert text offset y fix because it breaks quickmedia. Revert vertex draw texture coordinate reset because it breaks quickmedia --- src/graphics/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics/font.c') diff --git a/src/graphics/font.c b/src/graphics/font.c index 9a99f22..8c55044 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -227,7 +227,7 @@ int mgl_font_get_glyph(mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph render_offset.y = self->font_atlas.pointer_position.y; mgl_font_glyph new_glyph; - new_glyph.position = (mgl_vec2i){ xoff/GLYPH_UPSAMPLE, self->ascent + yoff/GLYPH_UPSAMPLE }; + new_glyph.position = (mgl_vec2i){ xoff/GLYPH_UPSAMPLE, yoff/GLYPH_UPSAMPLE }; new_glyph.size = (mgl_vec2i){ width/GLYPH_UPSAMPLE, height/GLYPH_UPSAMPLE }; new_glyph.texture_position = (mgl_vec2i){ render_offset.x, render_offset.y }; new_glyph.texture_size = (mgl_vec2i){ width, height }; -- cgit v1.2.3