mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
Cleanups
This commit is contained in:
parent
225757f68c
commit
5069d71295
@ -1423,7 +1423,7 @@ bool event_command(enum event_command cmd)
|
|||||||
video_driver_ctl(RARCH_DISPLAY_CTL_SET_NONBLOCK_STATE, &boolean);
|
video_driver_ctl(RARCH_DISPLAY_CTL_SET_NONBLOCK_STATE, &boolean);
|
||||||
break;
|
break;
|
||||||
case EVENT_CMD_VIDEO_SET_ASPECT_RATIO:
|
case EVENT_CMD_VIDEO_SET_ASPECT_RATIO:
|
||||||
video_driver_set_aspect_ratio(settings->video.aspect_ratio_idx);
|
video_driver_set_aspect_ratio();
|
||||||
break;
|
break;
|
||||||
case EVENT_CMD_AUDIO_SET_NONBLOCKING_STATE:
|
case EVENT_CMD_AUDIO_SET_NONBLOCKING_STATE:
|
||||||
boolean = true; /* fall-through */
|
boolean = true; /* fall-through */
|
||||||
|
@ -644,13 +644,14 @@ bool video_driver_get_video_output_size(unsigned *width, unsigned *height)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void video_driver_set_aspect_ratio(unsigned aspectratio_index)
|
void video_driver_set_aspect_ratio(void)
|
||||||
{
|
{
|
||||||
driver_t *driver = driver_get_ptr();
|
driver_t *driver = driver_get_ptr();
|
||||||
const video_poke_interface_t *poke = video_driver_get_poke_ptr(driver);
|
const video_poke_interface_t *poke = video_driver_get_poke_ptr(driver);
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (poke && poke->set_aspect_ratio)
|
if (poke && poke->set_aspect_ratio)
|
||||||
poke->set_aspect_ratio(driver->video_data, aspectratio_index);
|
poke->set_aspect_ratio(driver->video_data, settings->video.aspect_ratio_idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ void video_driver_set_video_mode(unsigned width,
|
|||||||
bool video_driver_get_video_output_size(
|
bool video_driver_get_video_output_size(
|
||||||
unsigned *width, unsigned *height);
|
unsigned *width, unsigned *height);
|
||||||
|
|
||||||
void video_driver_set_aspect_ratio(unsigned aspectratio_index);
|
void video_driver_set_aspect_ratio(void);
|
||||||
|
|
||||||
void video_driver_set_osd_msg(const char *msg,
|
void video_driver_set_osd_msg(const char *msg,
|
||||||
const struct font_params *params, void *font);
|
const struct font_params *params, void *font);
|
||||||
|
12
retroarch.c
12
retroarch.c
@ -1211,18 +1211,10 @@ int rarch_main_init(int argc, char *argv[])
|
|||||||
event_command(EVENT_CMD_SAVEFILES_INIT);
|
event_command(EVENT_CMD_SAVEFILES_INIT);
|
||||||
#if defined(GEKKO) && defined(HW_RVL)
|
#if defined(GEKKO) && defined(HW_RVL)
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
|
|
||||||
if (settings)
|
|
||||||
{
|
|
||||||
event_command(EVENT_CMD_VIDEO_SET_ASPECT_RATIO);
|
|
||||||
video_driver_set_aspect_ratio(settings->video.aspect_ratio_idx);
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned width = 0, height = 0;
|
unsigned width = 0, height = 0;
|
||||||
|
|
||||||
(void)width;
|
event_command(EVENT_CMD_VIDEO_SET_ASPECT_RATIO);
|
||||||
(void)height;
|
video_driver_set_aspect_ratio();
|
||||||
|
|
||||||
width = global->console.screen.resolutions.width;
|
width = global->console.screen.resolutions.width;
|
||||||
height = global->console.screen.resolutions.height;
|
height = global->console.screen.resolutions.height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user