From 0f1b9bccc0427d789159da911b3becb0c3711215 Mon Sep 17 00:00:00 2001 From: kub Date: Sun, 3 Dec 2023 14:42:32 +0100 Subject: [PATCH] sdl, improve redraw in file selector --- platform/common/menu_pico.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/platform/common/menu_pico.c b/platform/common/menu_pico.c index a8e5e3b6..25d8756d 100644 --- a/platform/common/menu_pico.c +++ b/platform/common/menu_pico.c @@ -1249,10 +1249,8 @@ static int main_menu_handler(int id, int keys) break; case MA_MAIN_LOAD_ROM: rom_fname_reload = NULL; - ret_name = menu_loop_romsel(rom_fname_loaded, - sizeof(rom_fname_loaded), rom_exts, NULL); -// ret_name = menu_loop_romsel_d(rom_fname_loaded, -// sizeof(rom_fname_loaded), rom_exts, NULL, menu_draw_prep); + ret_name = menu_loop_romsel_d(rom_fname_loaded, + sizeof(rom_fname_loaded), rom_exts, NULL, menu_draw_prep); if (ret_name != NULL) { lprintf("selected file: %s\n", ret_name); rom_fname_reload = ret_name; @@ -1383,10 +1381,8 @@ static int mh_tray_load_cd(int id, int keys) const char *ret_name; rom_fname_reload = NULL; - ret_name = menu_loop_romsel(rom_fname_loaded, - sizeof(rom_fname_loaded), rom_exts, NULL); -// ret_name = menu_loop_romsel_d(rom_fname_loaded, -// sizeof(rom_fname_loaded), rom_exts, NULL, menu_draw_prep); + ret_name = menu_loop_romsel_d(rom_fname_loaded, + sizeof(rom_fname_loaded), rom_exts, NULL, menu_draw_prep); if (ret_name == NULL) return 0; -- 2.39.5