diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-22 16:06:31 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-22 16:06:31 -0500 |
commit | 968bbd92cf9bf9cc364baa973d81f4dcfa647ca3 (patch) | |
tree | c0c41aff106ae0543cfc91ab7ab08825863b4406 /menu.c | |
parent | 2b24b61b156a66dd518f739156c424dbede075b9 (diff) |
show working directory in file selector
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |