1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-24 09:40:07 +00:00

Hide SRGB Force-disable setting if video driver not set to GL

This commit is contained in:
twinaphex 2015-07-12 18:44:48 +02:00
parent f70070cd16
commit 9fbaf0ad28

@ -3475,6 +3475,8 @@ static bool setting_append_list_video_options(
(*list)[list_info->index - 1].get_string_representation =
&setting_get_string_representation_st_float_video_refresh_rate_auto;
if (!strcmp(settings->video.driver, "gl"))
{
CONFIG_BOOL(
settings->video.force_srgb_disable,
menu_hash_to_str(MENU_LABEL_VIDEO_FORCE_SRGB_DISABLE),
@ -3489,6 +3491,7 @@ static bool setting_append_list_video_options(
general_read_handler);
menu_settings_list_current_add_cmd(list, list_info, EVENT_CMD_REINIT);
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO|SD_FLAG_ADVANCED);
}
END_SUB_GROUP(list, list_info, parent_group);
START_SUB_GROUP(list, list_info, "Aspect", group_info.name, subgroup_info, parent_group);