mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Reimplement action_ok_video_resolution
This commit is contained in:
parent
13a391c165
commit
88137521c4
@ -2408,50 +2408,19 @@ static int action_ok_video_resolution(const char *path,
|
|||||||
static int action_toggle_video_resolution(unsigned type, const char *label,
|
static int action_toggle_video_resolution(unsigned type, const char *label,
|
||||||
unsigned action)
|
unsigned action)
|
||||||
{
|
{
|
||||||
#ifdef GEKKO
|
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case MENU_ACTION_LEFT:
|
case MENU_ACTION_LEFT:
|
||||||
if (menu_current_gx_resolution > 0)
|
if (driver.video_data && driver.video_poke &&
|
||||||
menu_current_gx_resolution--;
|
driver.video_poke->get_video_output_prev)
|
||||||
|
driver.video_poke->get_video_output_prev(driver.video_data);
|
||||||
break;
|
break;
|
||||||
case MENU_ACTION_RIGHT:
|
case MENU_ACTION_RIGHT:
|
||||||
if (menu_current_gx_resolution < GX_RESOLUTIONS_LAST - 1)
|
if (driver.video_data && driver.video_poke &&
|
||||||
{
|
driver.video_poke->get_video_output_next)
|
||||||
#ifdef HW_RVL
|
driver.video_poke->get_video_output_next(driver.video_data);
|
||||||
if ((menu_current_gx_resolution + 1) > GX_RESOLUTIONS_640_480)
|
|
||||||
if (CONF_GetVideo() != CONF_VIDEO_PAL)
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
menu_current_gx_resolution++;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#elif defined(__CELLOS_LV2__)
|
|
||||||
switch (action)
|
|
||||||
{
|
|
||||||
case MENU_ACTION_LEFT:
|
|
||||||
if (g_extern.console.screen.resolutions.current.idx)
|
|
||||||
{
|
|
||||||
g_extern.console.screen.resolutions.current.idx--;
|
|
||||||
g_extern.console.screen.resolutions.current.id =
|
|
||||||
g_extern.console.screen.resolutions.list
|
|
||||||
[g_extern.console.screen.resolutions.current.idx];
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case MENU_ACTION_RIGHT:
|
|
||||||
if (g_extern.console.screen.resolutions.current.idx + 1 <
|
|
||||||
g_extern.console.screen.resolutions.count)
|
|
||||||
{
|
|
||||||
g_extern.console.screen.resolutions.current.idx++;
|
|
||||||
g_extern.console.screen.resolutions.current.id =
|
|
||||||
g_extern.console.screen.resolutions.list
|
|
||||||
[g_extern.console.screen.resolutions.current.idx];
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user