diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-11 01:46:26 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-11 01:47:06 +0200 |
commit | 6578337d2d7e407cf8cc5af20849401d14e93e4e (patch) | |
tree | 30f992b84298d3732ac0d5c08312ce1ac8bedf57 /include | |
parent | d20a42bc640e4cd4c3bb2a15c08660319a21dcc5 (diff) |
Fix incorrect position for mgl_text_find_character_pos
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/graphics/text.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mgl/graphics/text.h b/include/mgl/graphics/text.h index 4dd0219..8e4817b 100644 --- a/include/mgl/graphics/text.h +++ b/include/mgl/graphics/text.h @@ -48,7 +48,7 @@ void mgl_text_set_max_width(mgl_text *self, float max_width); /* If |max_rows| is 0 then the text can display an unlimited amount of rows */ void mgl_text_set_max_rows(mgl_text *self, unsigned int max_rows); mgl_vec2f mgl_text_get_bounds(mgl_text *self); -/* Returns the position of the character on the screen (relative to the current mgl_view) */ +/* Returns the position of the character relative to the window top left (relative to the current mgl_view) */ mgl_vec2f mgl_text_find_character_pos(mgl_text *self, size_t index); void mgl_text_draw(mgl_context *context, mgl_text *text); |