mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Cleanups
This commit is contained in:
parent
d181f70303
commit
49bf9b62ae
@ -1337,15 +1337,13 @@ bool video_driver_cached_frame(void)
|
|||||||
void video_driver_monitor_adjust_system_rates(void)
|
void video_driver_monitor_adjust_system_rates(void)
|
||||||
{
|
{
|
||||||
float timing_skew;
|
float timing_skew;
|
||||||
const struct retro_system_timing *info = NULL;
|
|
||||||
struct retro_system_av_info *av_info = &video_driver_av_info;
|
struct retro_system_av_info *av_info = &video_driver_av_info;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
float video_refresh_rate = settings->floats.video_refresh_rate;
|
float video_refresh_rate = settings->floats.video_refresh_rate;
|
||||||
|
const struct retro_system_timing *info = (const struct retro_system_timing*)&av_info->timing;
|
||||||
|
|
||||||
rarch_ctl(RARCH_CTL_UNSET_NONBLOCK_FORCED, NULL);
|
rarch_ctl(RARCH_CTL_UNSET_NONBLOCK_FORCED, NULL);
|
||||||
|
|
||||||
if (av_info)
|
|
||||||
info = (const struct retro_system_timing*)&av_info->timing;
|
|
||||||
|
|
||||||
if (!info || info->fps <= 0.0)
|
if (!info || info->fps <= 0.0)
|
||||||
return;
|
return;
|
||||||
@ -1577,11 +1575,8 @@ void video_driver_set_viewport_square_pixel(void)
|
|||||||
{
|
{
|
||||||
unsigned len, highest, i, aspect_x, aspect_y;
|
unsigned len, highest, i, aspect_x, aspect_y;
|
||||||
unsigned width, height;
|
unsigned width, height;
|
||||||
struct retro_game_geometry *geom = NULL;
|
|
||||||
struct retro_system_av_info *av_info = &video_driver_av_info;
|
struct retro_system_av_info *av_info = &video_driver_av_info;
|
||||||
|
struct retro_game_geometry *geom = &av_info->geometry;
|
||||||
if (av_info)
|
|
||||||
geom = &av_info->geometry;
|
|
||||||
|
|
||||||
if (!geom)
|
if (!geom)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user