mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-08 04:39:34 +00:00
(GX) Change in Resolution setting - press RGUI_ACTION_OK now
to switch resolution
This commit is contained in:
parent
fcb563818b
commit
f693675a38
@ -4373,11 +4373,7 @@ static int menu_common_setting_set(unsigned setting, unsigned action)
|
|||||||
if (action == RGUI_ACTION_LEFT)
|
if (action == RGUI_ACTION_LEFT)
|
||||||
{
|
{
|
||||||
if (rgui_current_gx_resolution > 0)
|
if (rgui_current_gx_resolution > 0)
|
||||||
{
|
|
||||||
rgui_current_gx_resolution--;
|
rgui_current_gx_resolution--;
|
||||||
if (driver.video_data)
|
|
||||||
gx_set_video_mode(driver.video_data, rgui_gx_resolutions[rgui_current_gx_resolution][0], rgui_gx_resolutions[rgui_current_gx_resolution][1]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (action == RGUI_ACTION_RIGHT)
|
else if (action == RGUI_ACTION_RIGHT)
|
||||||
{
|
{
|
||||||
@ -4390,11 +4386,14 @@ static int menu_common_setting_set(unsigned setting, unsigned action)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
rgui_current_gx_resolution++;
|
rgui_current_gx_resolution++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (action == RGUI_ACTION_OK)
|
||||||
|
{
|
||||||
if (driver.video_data)
|
if (driver.video_data)
|
||||||
gx_set_video_mode(driver.video_data, rgui_gx_resolutions[rgui_current_gx_resolution][0],
|
gx_set_video_mode(driver.video_data, rgui_gx_resolutions[rgui_current_gx_resolution][0],
|
||||||
rgui_gx_resolutions[rgui_current_gx_resolution][1]);
|
rgui_gx_resolutions[rgui_current_gx_resolution][1]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
#elif defined(__CELLOS_LV2__)
|
#elif defined(__CELLOS_LV2__)
|
||||||
case RGUI_SETTINGS_VIDEO_RESOLUTION:
|
case RGUI_SETTINGS_VIDEO_RESOLUTION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user