From 8f393b50d77a2e6d89c5ee536c939068b5d2495f Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Fri, 15 Nov 2024 20:47:12 +0000 Subject: [PATCH] minor improvements --- src/menu/ui_components.h | 4 ++-- src/menu/ui_components/common.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/menu/ui_components.h b/src/menu/ui_components.h index 86e313f6..0fa7b3b2 100644 --- a/src/menu/ui_components.h +++ b/src/menu/ui_components.h @@ -57,7 +57,7 @@ typedef enum { typedef enum { ACTION_BAR_LINE_ONE, ACTION_BAR_LINE_TWO, - ACTION_BAR_LINE_END + ACTION_BAR_LINE_END /**< List end marker */ } action_bar_line_t; @@ -168,7 +168,7 @@ void ui_components_main_text_draw(rdpq_align_t align, rdpq_valign_t valign, char * @param fmt Format string for the text. * @param ... Additional arguments for the format string. */ -void ui_components_actions_bar_text_draw(rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t context_button, char *fmt, ...); +void ui_components_actions_bar_text_draw(rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t action_button, char *fmt, ...); /** * @brief Initialize the background component. diff --git a/src/menu/ui_components/common.c b/src/menu/ui_components/common.c index 14f99a32..c284f252 100644 --- a/src/menu/ui_components/common.c +++ b/src/menu/ui_components/common.c @@ -166,7 +166,7 @@ void ui_components_main_text_draw (rdpq_align_t align, rdpq_valign_t valign, cha } } -void ui_components_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t context_button, char *fmt, ...) { +void ui_components_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t valign, action_bar_line_t line, sprite_joypad_button_type_t action_button, char *fmt, ...) { char buffer[256]; size_t nbytes = sizeof(buffer); @@ -175,7 +175,7 @@ void ui_components_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t vali char *formatted = vasnprintf(buffer, &nbytes, fmt, va); va_end(va); - // FIXME: if there is a button to draw, we should add it! + // FIXME: if there is an action button to draw, we should add it! // FIXME: take into account action bar line rdpq_text_printn(