fix ROM selector annoyance
authornotaz <notasas@gmail.com>
Fri, 28 Aug 2009 22:09:32 +0000 (22:09 +0000)
committernotaz <notasas@gmail.com>
Fri, 28 Aug 2009 22:09:32 +0000 (22:09 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@766 be3aeb3a-fb24-0410-a615-afba39da0efa

platform/common/menu.c

index 08117df..e651694 100644 (file)
@@ -814,6 +814,11 @@ rescan:
                }\r
        }\r
 \r
+       /* make sure action buttons are not pressed on entering menu */\r
+       draw_dirlist(curr_path, namelist, n, sel);\r
+       while (in_menu_wait_any(50) & (PBTN_MOK|PBTN_MBACK|PBTN_MENU))\r
+               ;\r
+\r
        for (;;)\r
        {\r
                draw_dirlist(curr_path, namelist, n, sel);\r
@@ -1945,7 +1950,8 @@ void menu_loop(void)
                if (engineState == PGS_Menu)\r
                        engineState = PGS_Running;\r
                /* wait until menu, ok, back is released */\r
-               while (in_menu_wait_any(50) & (PBTN_MENU|PBTN_MOK|PBTN_MBACK));\r
+               while (in_menu_wait_any(50) & (PBTN_MENU|PBTN_MOK|PBTN_MBACK))\r
+                       ;\r
        }\r
 \r
        in_set_blocking(0);\r