summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
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);