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/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics/text.c') diff --git a/src/graphics/text.c b/src/graphics/text.c index 92c578c..61c2919 100644 --- a/src/graphics/text.c +++ b/src/graphics/text.c @@ -217,7 +217,7 @@ void mgl_text_draw(mgl_context *context, mgl_text *text) { mgl_text_get_bounds(text); TextDrawUserdata text_draw_userdata; - text_draw_userdata.position = (mgl_vec2f){ text->position.x, text->position.y }; + text_draw_userdata.position = (mgl_vec2f){ text->position.x, text->position.y + text->font->character_size }; text_draw_userdata.text = text; text_draw_userdata.context = context; text_draw_userdata.prev_codepoint = 0; -- cgit v1.2.3