aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 13:51:08 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 13:51:08 +0200
commitade4a509e9ca19176ea560fd369e46370c4b0955 (patch)
tree422e0e41a03136c27346c1732ce23a8961a9059b
parenta3f167ee04a57291537011c47a88ab6c84690a6e (diff)
Minor code style fixes
-rw-r--r--src/menu/src/gamecfg_menu.c2
-rw-r--r--src/menu/src/menu.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/menu/src/gamecfg_menu.c b/src/menu/src/gamecfg_menu.c
index 9fc3873..2cdd48f 100644
--- a/src/menu/src/gamecfg_menu.c
+++ b/src/menu/src/gamecfg_menu.c
@@ -77,10 +77,8 @@ int menu_gamecfg(struct menu_common *const c)
gui_add_child(&m.bcnt.common, &m.back.common);
while (!back && !c->p.common.exit && !start)
- {
if (menu_update(c, update, render, &m))
return -1;
- }
if (start)
return game(NULL);
diff --git a/src/menu/src/menu.c b/src/menu/src/menu.c
index a8df6e9..200023c 100644
--- a/src/menu/src/menu.c
+++ b/src/menu/src/menu.c
@@ -66,7 +66,7 @@ int menu(void)
struct menu_common c = {0};
if (game_resinit())
- return -1;
+ return -1;
cursor_init(&c.cam.cursor);
peripheral_init(&cfg, &c.p);