summaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-07 19:30:51 -0400
committerpommicket <pommicket@gmail.com>2023-09-07 22:50:11 -0400
commitc7f323bf733160016247368883a58a9d467468b4 (patch)
tree6807738d64f94b9e0b5c136e6eb31f941fe7928d /text.c
parent5cad1bee9b72610d9d97b5f97e7f1a245a2d2ba5 (diff)
move color-related functions from util.c to color.c
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 4e21143..8b4e38f 100644
--- a/text.c
+++ b/text.c
@@ -493,7 +493,7 @@ static vec2 text_render_utf8_internal(Font *font, const char *text, double x, do
render_state.render = render;
render_state.x = x;
render_state.y = y;
- rgba_u32_to_floats(color, render_state.color);
+ color_u32_to_floats(color, render_state.color);
text_utf8_with_state(font, &render_state, text);
return (vec2){
maxf(0.0f, (float)(render_state.x_largest - x)),