summaryrefslogtreecommitdiff
path: root/main.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 /main.c
parent5cad1bee9b72610d9d97b5f97e7f1a245a2d2ba5 (diff)
move color-related functions from util.c to color.c
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index dbfb6a1..5791ad2 100644
--- a/main.c
+++ b/main.c
@@ -922,7 +922,7 @@ int main(int argc, char **argv) {
glViewport(0, 0, (GLsizei)window_width, (GLsizei)window_height);
{ // clear (background)
float bg_color[4];
- rgba_u32_to_floats(ted_active_color(ted, COLOR_BG), bg_color);
+ color_u32_to_floats(ted_active_color(ted, COLOR_BG), bg_color);
glClearColor(bg_color[0], bg_color[1], bg_color[2], bg_color[3]);
}
glClear(GL_COLOR_BUFFER_BIT);
@@ -1090,7 +1090,7 @@ int main(int argc, char **argv) {
text_state.x = text_x1;
text_state.y = text_y1;
text_state.wrap = true;
- rgba_u32_to_floats(ted_active_color(ted, COLOR_TEXT), text_state.color);
+ color_u32_to_floats(ted_active_color(ted, COLOR_TEXT), text_state.color);
text_utf8_with_state(font, &text_state, ted->message_shown);
gl_geometry_draw();
text_render(font);