mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 19:21:27 +00:00
Merge pull request #35 from alphanu1/alphanu1-patch-35
Linux switching incorporation
This commit is contained in:
commit
2d36a32bcd
@ -48,22 +48,6 @@ static void crt_check_first_run(void)
|
|||||||
first_run = false;
|
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)
|
static void crt_aspect_ratio_switch(unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
/* send aspect float to videeo_driver */
|
/* 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 */
|
/* Create correct aspect to fit video if resolution does not exist */
|
||||||
static void crt_screen_setup_aspect(unsigned width, unsigned height)
|
static void crt_screen_setup_aspect(unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
switch_crt_hz();
|
|
||||||
|
|
||||||
/* get original resolution of core */
|
/* get original resolution of core */
|
||||||
if (height == 4)
|
if (height == 4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user