X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=common%2Fmenu.c;h=adfacefb03a2417b22ee22ff68db164085ffc46d;hb=9efc102f1c8f6e2ebc5412f1b2c45a0c77acad48;hp=08117dfebc5b4959957fa584978a47c927fda2d1;hpb=86c1049d1fba4c8752fd08c6bc848c3318b91eac;p=libpicofe.git diff --git a/common/menu.c b/common/menu.c index 08117df..adfacef 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); @@ -1447,7 +1452,7 @@ static int menu_loop_adv_options(menu_id id, int keys) static int mh_opt_render(menu_id id, int keys) { - plat_video_toggle_renderer((keys & PBTN_RIGHT) ? 1 : 0, 1); + plat_video_toggle_renderer((keys & PBTN_RIGHT) ? 1 : 0, 0, 1); return 0; } @@ -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);