summaryrefslogtreecommitdiff
path: root/gl.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 /gl.c
parent5cad1bee9b72610d9d97b5f97e7f1a245a2d2ba5 (diff)
move color-related functions from util.c to color.c
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gl.c b/gl.c
index bf03250..52902e6 100644
--- a/gl.c
+++ b/gl.c
@@ -232,7 +232,7 @@ void gl_geometry_init(void) {
void gl_geometry_rect(Rect r, u32 color_rgba) {
if (r.size.x <= 0 || r.size.y <= 0)
return;
- vec4 color = rgba_u32_to_vec4(color_rgba);
+ vec4 color = color_u32_to_vec4(color_rgba);
vec2 p1 = {rect_x1(r), rect_y1(r)};
vec2 p2 = {rect_x1(r), rect_y2(r)};