aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 12:53:46 +1000
committerquou <quou@disroot.org>2023-05-07 12:54:06 +1000
commit5f341eacdf0d75a4b334969a2d8a4701d61e4d9e (patch)
treeee3a4c44b92e975530e1e6fed18c8852a6f70a93 /menu.c
parent5ef6a71e935e2c3d1e5f9828e8cdbd78403a06a0 (diff)
Add waves and stuff.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index e4e82f5..ab3f7de 100644
--- a/menu.c
+++ b/menu.c
@@ -69,15 +69,17 @@ void update_menu(Menu* menu) {
void render_menu(Menu* menu, const BM_Font* font) {
int i, x, y, cw, ch;
const Menu_Item* el;
+ Colour col;
y = menu->y;
cw = font->char_w;
ch = font->char_h;
+ col = make_colour(0xffde00, 255);
for (i = 0; i < menu->el_count; i++) {
el = &menu->els[i];
x = renderer_w / 2 - (cw * el->text_len) / 2;
- rfont_text(font, x, y, el->text);
+ rfont_text_col(font, x, y, el->text, col);
if (i == menu->selected) {
rfont_char(font, x - cw, y, '>');
}