diff options
author | pommicket <pommicket@gmail.com> | 2023-08-06 14:07:53 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-06 14:07:53 -0400 |
commit | 52da64686fb506372fa09ab562915f895cd88cb9 (patch) | |
tree | 24c2ca40227ddc0ad92adced2432930d4beed729 /text.c | |
parent | b4e2b3d2407cbad54169da707f72595246e4794a (diff) |
util cleanup
Diffstat (limited to 'text.c')
-rw-r--r-- | text.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -489,10 +489,10 @@ static vec2 text_render_utf8_internal(Font *font, const char *text, double x, do render_state.y = y; rgba_u32_to_floats(color, render_state.color); text_utf8_with_state(font, &render_state, text); - return Vec2( + return (vec2){ maxf(0.0f, (float)(render_state.x_largest - x)), maxf(0.0f, (float)(render_state.y_largest - y)) - ); + }; } void text_utf8(Font *font, const char *text, double x, double y, u32 color) { |