summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-22 16:06:31 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-22 16:06:31 -0500
commit968bbd92cf9bf9cc364baa973d81f4dcfa647ca3 (patch)
treec0c41aff106ae0543cfc91ab7ab08825863b4406 /menu.c
parent2b24b61b156a66dd518f739156c424dbede075b9 (diff)
show working directory in file selector
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index a4f9c11..af47393 100644
--- a/menu.c
+++ b/menu.c
@@ -50,8 +50,8 @@ static void menu_update(Ted *ted, Menu menu) {
}
static void menu_render(Ted *ted, Menu menu) {
- Settings *settings = &ted->settings;
- u32 *colors = settings->colors;
+ Settings const *settings = &ted->settings;
+ u32 const *colors = settings->colors;
float window_width = ted->window_width, window_height = ted->window_height;
// render backdrop
@@ -62,7 +62,7 @@ static void menu_render(Ted *ted, Menu menu) {
if (menu == MENU_OPEN) {
- float padding = 20;
+ float padding = settings->padding;
float menu_x1 = window_width * 0.5f - 300;
float menu_x2 = window_width * 0.5f + 300;
menu_x1 = maxf(menu_x1, padding);