From 92ee4f616dd62211ac63c89aeb9e68227ef18db2 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Tue, 6 Jun 2023 21:05:28 +0100 Subject: [PATCH] Set mode to PAL@50 if it's a European console without VGA --- GL/platforms/sh4.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/GL/platforms/sh4.c b/GL/platforms/sh4.c index e375772..ca78170 100644 --- a/GL/platforms/sh4.c +++ b/GL/platforms/sh4.c @@ -31,6 +31,17 @@ void InitGPU(_Bool autosort, _Bool fsaa) { }; pvr_init(¶ms); + + /* If we're PAL and we're NOT VGA, then use 50hz by default. This is the safest + thing to do. If someone wants to force 60hz then they can call vid_set_mode later and hopefully + that'll work... */ + + int cable = vid_check_cable(); + int region = flashrom_get_region(); + + if(region == FLASHROM_REGION_EUROPE && cable != CT_VGA) { + vid_set_mode(DM_640x480_PAL_IL, PM_RGB565); + } } void SceneBegin() {