Merge branch 'No_Flashrom_Read_if_VGA' into 'master'

avoid reading the flashrom if we know we are in VGA mode

See merge request simulant/GLdc!112
This commit is contained in:
Luke Benstead 2024-02-02 21:31:21 +00:00
commit 33ddcb1330

View File

@ -37,11 +37,13 @@ void InitGPU(_Bool autosort, _Bool fsaa) {
that'll work... */
int cable = vid_check_cable();
int region = flashrom_get_region();
if(region == FLASHROM_REGION_EUROPE && cable != CT_VGA) {
printf("PAL region without VGA - enabling 50hz");
vid_set_mode(DM_640x480_PAL_IL, PM_RGB565);
if(cable != CT_VGA) {
int region = flashrom_get_region();
if (region == FLASHROM_REGION_EUROPE) {
printf("PAL region without VGA - enabling 50hz");
vid_set_mode(DM_640x480_PAL_IL, PM_RGB565);
}
}
}