diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-15 23:52:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-15 23:52:21 +0100 |
commit | 6042e1843023e1f4e0f4c60da8458703b3bc58cf (patch) | |
tree | ef32c36ab78fb4d292ffd96681b4beee28a27b63 /src/graphics/text.c | |
parent | cac754b9f5d4695bd6416ac94fcab22423a854f9 (diff) |
Revert text offset y fix because it breaks quickmedia. Revert vertex draw texture coordinate reset because it breaks quickmedia
Diffstat (limited to 'src/graphics/text.c')
-rw-r--r-- | src/graphics/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |