mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Linux switching incorporation
This commit is contained in:
parent
c73b4b26ba
commit
1eedb0406b
@ -48,22 +48,6 @@ static void crt_check_first_run(void)
|
||||
first_run = false;
|
||||
}
|
||||
|
||||
static void switch_crt_hz(void)
|
||||
{
|
||||
if (ra_core_hz == ra_tmp_core_hz)
|
||||
return;
|
||||
|
||||
/* set hz float an int for windows switching */
|
||||
if (ra_core_hz < 53)
|
||||
ra_set_core_hz = 50;
|
||||
if (ra_core_hz >= 53 && ra_core_hz < 57)
|
||||
ra_set_core_hz = 55;
|
||||
if (ra_core_hz >= 57)
|
||||
ra_set_core_hz = 60;
|
||||
video_monitor_set_refresh_rate(ra_set_core_hz);
|
||||
ra_tmp_core_hz = ra_core_hz;
|
||||
}
|
||||
|
||||
static void crt_aspect_ratio_switch(unsigned width, unsigned height)
|
||||
{
|
||||
/* send aspect float to videeo_driver */
|
||||
@ -84,7 +68,6 @@ static void switch_res_crt(unsigned width, unsigned height)
|
||||
/* Create correct aspect to fit video if resolution does not exist */
|
||||
static void crt_screen_setup_aspect(unsigned width, unsigned height)
|
||||
{
|
||||
switch_crt_hz();
|
||||
|
||||
/* get original resolution of core */
|
||||
if (height == 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user