From: kub Date: Sun, 3 Dec 2023 13:42:32 +0000 (+0100) Subject: sdl, improve redraw in file selector X-Git-Tag: v2.00~153 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f1b9bccc0427d789159da911b3becb0c3711215;p=picodrive.git sdl, improve redraw in file selector --- 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;