From 735a987b27592b6add258ae8f4d7edc67d589224 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 18 May 2024 22:33:23 +0300 Subject: [PATCH] pandora: some fixes for 2.0 --- platform/pandora/plat.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/platform/pandora/plat.c b/platform/pandora/plat.c index 20f9ca8f..bb7774f2 100644 --- a/platform/pandora/plat.c +++ b/platform/pandora/plat.c @@ -171,8 +171,13 @@ void pemu_finalize_frame(const char *fps, const char *notice) } if (notice && notice[0]) emu_osd_text16(2 + g_osd_start_x, g_osd_y, notice); - if (fps && fps[0] && (currentConfig.EmuOpt & EOPT_SHOW_FPS)) - emu_osd_text16(g_osd_fps_x, g_osd_y, fps); + if (fps && fps[0] && (currentConfig.EmuOpt & EOPT_SHOW_FPS)) { + const char *p; + // avoid wrapping when fps is very high + if (fps[5] != ' ' && (p = strchr(fps, '/'))) + fps = p; + emu_osd_text16(g_osd_fps_x, g_osd_y, fps); + } if ((PicoIn.AHW & PAHW_MCD) && (currentConfig.EmuOpt & EOPT_EN_CD_LEDS)) draw_cd_leds(); } @@ -186,8 +191,12 @@ void plat_video_flip(void) xenv_update(NULL, NULL, NULL, NULL); } +// pnd doesn't use multiple renderers, but we have to handle this since it's +// called on 32x enable and PicoDrawSetOutFormat() sets up the 32x layers void plat_video_toggle_renderer(int change, int is_menu) { + if (!is_menu) + PicoDrawSetOutFormat(PDF_RGB555, 0); } void plat_video_menu_enter(int is_rom_loaded) -- 2.39.5