From e0e9248c33621e1cc8edff5309f38f347cbb9934 Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 28 Aug 2009 22:09:32 +0000 Subject: [PATCH] fix ROM selector annoyance git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@766 be3aeb3a-fb24-0410-a615-afba39da0efa --- common/menu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/menu.c b/common/menu.c index 08117df..e651694 100644 --- a/common/menu.c +++ b/common/menu.c @@ -814,6 +814,11 @@ rescan: } } + /* make sure action buttons are not pressed on entering menu */ + draw_dirlist(curr_path, namelist, n, sel); + while (in_menu_wait_any(50) & (PBTN_MOK|PBTN_MBACK|PBTN_MENU)) + ; + for (;;) { draw_dirlist(curr_path, namelist, n, sel); @@ -1945,7 +1950,8 @@ void menu_loop(void) if (engineState == PGS_Menu) engineState = PGS_Running; /* wait until menu, ok, back is released */ - while (in_menu_wait_any(50) & (PBTN_MENU|PBTN_MOK|PBTN_MBACK)); + while (in_menu_wait_any(50) & (PBTN_MENU|PBTN_MOK|PBTN_MBACK)) + ; } in_set_blocking(0); -- 2.39.5