Overclock: Remove this for region change

These variables, normal_scanlines and totalscanlines will get updated if
FCUI_SetVidSystem(), so no need to set it here.
This commit is contained in:
negativeExponent
2020-10-25 19:13:45 +08:00
parent 2ae14b75de
commit 4e2c5468e4

View File

@@ -1053,7 +1053,7 @@ static void retro_set_custom_palette(void)
* Dendy has PAL framerate and resolution, but ~NTSC timings,
* and has 50 dummy scanlines to force 50 fps.
*/
void FCEUD_RegionOverride(unsigned region)
static void FCEUD_RegionOverride(unsigned region)
{
unsigned pal = 0;
unsigned d = 0;
@@ -1078,8 +1078,6 @@ void FCEUD_RegionOverride(unsigned region)
}
dendy = d;
normal_scanlines = dendy ? 290 : 240;
totalscanlines = normal_scanlines + (overclock_enabled ? extrascanlines : 0);
FCEUI_SetVidSystem(pal);
ResetPalette();
}