summaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.c b/text.c
index d939dbc..ba9212f 100644
--- a/text.c
+++ b/text.c
@@ -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) {