From 2b2a024ac12622a6c056d5367f01331343e3ab1e Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Sun, 24 Nov 2024 18:26:17 +0000 Subject: [PATCH] Revert pal60 change --- src/menu/menu.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/menu/menu.c b/src/menu/menu.c index 91a51a09..bf81678a 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -32,7 +32,9 @@ static menu_t *menu; +static tv_type_t tv_type; +extern tv_type_t __boot_tvtype; static void menu_init (boot_params_t *boot_params) { menu = calloc(1, sizeof(menu_t)); @@ -74,8 +76,14 @@ static void menu_init (boot_params_t *boot_params) { .width = 640, .height = 480, .interlaced = INTERLACED ? INTERLACE_HALF : INTERLACE_OFF, - .pal60 = menu->settings.pal60_enabled, }; + + tv_type = get_tv_type(); + if (tv_type == TV_PAL && menu->settings.pal60_enabled) { + // HACK: Set TV type to NTSC, so PAL console would output 60 Hz signal instead. + __boot_tvtype = TV_NTSC; + } + display_init(resolution, DEPTH_16_BPP, 2, GAMMA_NONE, INTERLACED ? FILTERS_DISABLED : FILTERS_RESAMPLE); display_set_fps_limit(FPS_LIMIT); @@ -101,6 +109,7 @@ static void menu_init (boot_params_t *boot_params) { } static void menu_deinit (menu_t *menu) { + __boot_tvtype = tv_type; hdmi_send_game_id(menu->boot_params); ui_components_background_free();