Minor code style fixes

This commit is contained in:
Xavier Del Campo Romero 2022-09-20 13:51:08 +02:00
parent a3f167ee04
commit ade4a509e9
2 changed files with 1 additions and 3 deletions

View File

@ -77,10 +77,8 @@ int menu_gamecfg(struct menu_common *const c)
gui_add_child(&m.bcnt.common, &m.back.common); gui_add_child(&m.bcnt.common, &m.back.common);
while (!back && !c->p.common.exit && !start) while (!back && !c->p.common.exit && !start)
{
if (menu_update(c, update, render, &m)) if (menu_update(c, update, render, &m))
return -1; return -1;
}
if (start) if (start)
return game(NULL); return game(NULL);

View File

@ -66,7 +66,7 @@ int menu(void)
struct menu_common c = {0}; struct menu_common c = {0};
if (game_resinit()) if (game_resinit())
return -1; return -1;
cursor_init(&c.cam.cursor); cursor_init(&c.cam.cursor);
peripheral_init(&cfg, &c.p); peripheral_init(&cfg, &c.p);