summaryrefslogtreecommitdiff
path: root/ide-autocomplete.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 /ide-autocomplete.c
parent5cad1bee9b72610d9d97b5f97e7f1a245a2d2ba5 (diff)
move color-related functions from util.c to color.c
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r--ide-autocomplete.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c
index 295dcda..0ad78ed 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -668,7 +668,7 @@ void autocomplete_frame(Ted *ted) {
text_state.x = doc_x + padding;
text_state.y = doc_y + padding;
text_state.wrap = true;
- rgba_u32_to_floats(colors[COLOR_TEXT], text_state.color);
+ color_u32_to_floats(colors[COLOR_TEXT], text_state.color);
text_utf8_with_state(font, &text_state, document->documentation);
}
}
@@ -688,7 +688,7 @@ void autocomplete_frame(Ted *ted) {
float y = start_y;
TextRenderState state = text_render_state_default;
state.min_x = x + padding; state.min_y = y; state.max_x = x + menu_width - padding; state.max_y = y + menu_height;
- rgba_u32_to_floats(colors[COLOR_TEXT], state.color);
+ color_u32_to_floats(colors[COLOR_TEXT], state.color);
if (waiting_for_lsp && ncompletions == 0) {
state.x = x + padding; state.y = y;
@@ -708,7 +708,7 @@ void autocomplete_frame(Ted *ted) {
if (!settings->syntax_highlighting)
label_color = COLOR_TEXT;
- rgba_u32_to_floats(colors[label_color], state.color);
+ color_u32_to_floats(colors[label_color], state.color);
// draw icon
char icon_text[2] = {symbol_kind_icon(completion->kind), 0};