summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 22:32:24 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 22:32:24 -0400
commit93023da1f9ed1e40d4e4317d20dbf8398017eee7 (patch)
tree365204b8560d8e03d0487c0428dac0c88e47c9cd /main.c
parent61fcf4a14199486cc8bd7538ca236ac8fb93c0bb (diff)
start dynamic menus
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3c23958..55fb94a 100644
--- a/main.c
+++ b/main.c
@@ -98,7 +98,7 @@ static Rect message_box_rect(Ted *ted) {
float window_width = ted->window_width, window_height = ted->window_height;
float char_height = text_font_char_height(font);
return rect_centered(Vec2(window_width * 0.5f, window_height * 0.9f),
- Vec2(menu_get_width(ted), 3 * char_height + 2 * padding));
+ Vec2(ted_get_menu_width(ted), 3 * char_height + 2 * padding));
}
#if DEBUG