mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-22 11:04:35 +00:00
(RGUI) Use new video_poke interface
This commit is contained in:
parent
68494d0547
commit
0af20af5ec
@ -221,7 +221,7 @@ begin_loop:
|
||||
if(g_extern.lifecycle_mode_state & (1ULL << MODE_GAME))
|
||||
{
|
||||
driver.input->poll(NULL);
|
||||
driver.video->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx);
|
||||
driver.video_poke->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx);
|
||||
|
||||
if (g_extern.lifecycle_mode_state & (1ULL << MODE_VIDEO_THROTTLE_ENABLE))
|
||||
audio_start_func();
|
||||
|
@ -694,6 +694,7 @@ static int rgui_settings_toggle_setting(rgui_file_type_t setting, rgui_action_t
|
||||
menu_settings_set_default(S_DEF_HW_TEXTURE_FILTER);
|
||||
else
|
||||
menu_settings_set(S_HW_TEXTURE_FILTER);
|
||||
driver.video_poke->set_filtering(driver.video_data, 0, g_settings.video.smooth);
|
||||
break;
|
||||
#ifdef HW_RVL
|
||||
case RGUI_SETTINGS_VIDEO_SOFT_FILTER:
|
||||
@ -762,7 +763,7 @@ static int rgui_settings_toggle_setting(rgui_file_type_t setting, rgui_action_t
|
||||
menu_settings_set(S_ASPECT_RATIO_DECREMENT);
|
||||
else if (action == RGUI_ACTION_RIGHT)
|
||||
menu_settings_set(S_ASPECT_RATIO_INCREMENT);
|
||||
video_set_aspect_ratio_func(g_settings.video.aspect_ratio_idx);
|
||||
driver.video_poke->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx);
|
||||
break;
|
||||
case RGUI_SETTINGS_VIDEO_ROTATION:
|
||||
if (action == RGUI_ACTION_START)
|
||||
@ -1210,7 +1211,7 @@ static int rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t action)
|
||||
{
|
||||
rgui_list_push(rgui->path_stack, "", type, rgui->directory_ptr);
|
||||
g_settings.video.aspect_ratio_idx = ASPECT_RATIO_CUSTOM;
|
||||
video_set_aspect_ratio_func(g_settings.video.aspect_ratio_idx);
|
||||
driver.video_poke->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx);
|
||||
}
|
||||
else if (type == RGUI_SETTINGS_OPEN_FILEBROWSER && action == RGUI_ACTION_OK)
|
||||
{
|
||||
|
@ -559,9 +559,6 @@ static const video_driver_t video_thread = {
|
||||
thread_start,
|
||||
thread_stop,
|
||||
thread_restart,
|
||||
#endif
|
||||
#if defined(HAVE_RMENU) || defined(HAVE_RGUI)
|
||||
thread_set_aspect_ratio,
|
||||
#endif
|
||||
thread_set_rotation,
|
||||
thread_viewport_info,
|
||||
|
Loading…
x
Reference in New Issue
Block a user