summaryrefslogtreecommitdiff
path: root/buffer.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 /buffer.c
parent5cad1bee9b72610d9d97b5f97e7f1a245a2d2ba5 (diff)
move color-related functions from util.c to color.c
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.c b/buffer.c
index 8d48c6d..39d28ac 100644
--- a/buffer.c
+++ b/buffer.c
@@ -3372,7 +3372,7 @@ void buffer_render(TextBuffer *buffer, Rect r) {
}
}
// set color
- rgba_u32_to_floats(line_number_color, text_state.color);
+ color_u32_to_floats(line_number_color, text_state.color);
text_state.x = x; text_state.y = y;
text_state_break_kerning(&text_state);
text_utf8_with_state(font, &text_state, str);
@@ -3532,7 +3532,7 @@ void buffer_render(TextBuffer *buffer, Rect r) {
if (syntax_highlighting) {
SyntaxCharType type = char_types[i];
ColorSetting color = syntax_char_type_to_color_setting(type);
- rgba_u32_to_floats(settings_color(settings, color), text_state.color);
+ color_u32_to_floats(settings_color(settings, color), text_state.color);
}
buffer_render_char(buffer, font, &text_state, c);
}