diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-30 16:10:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-30 16:10:56 +0200 |
commit | 956c86fe4728e6e5239202f1402fd65260ece7c8 (patch) | |
tree | 70b638cac96eb164c5320be05d14e07a142794d7 /src/graphics/text.c | |
parent | 131a2f0b5c51fc821224bf7637ba58df0a5ae15a (diff) |
Proper y offset for text, add option to create hidden window and add function to make it visible (map, unmap)
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 61c2919..92c578c 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->font->character_size }; + text_draw_userdata.position = (mgl_vec2f){ text->position.x, text->position.y }; text_draw_userdata.text = text; text_draw_userdata.context = context; text_draw_userdata.prev_codepoint = 0; |