mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
Add label representation for video filter
This commit is contained in:
parent
a68886cf5d
commit
01359b14c6
@ -4646,6 +4646,25 @@ static void menu_action_setting_disp_set_label_shader_filter_pass(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void menu_action_setting_disp_set_label_filter(
|
||||||
|
file_list_t* list,
|
||||||
|
unsigned *w, unsigned type, unsigned i,
|
||||||
|
const char *label,
|
||||||
|
char *type_str, size_t type_str_size,
|
||||||
|
const char *entry_label,
|
||||||
|
const char *path,
|
||||||
|
char *path_buf, size_t path_buf_size)
|
||||||
|
{
|
||||||
|
*type_str = '\0';
|
||||||
|
*w = 19;
|
||||||
|
strlcpy(path_buf, path, path_buf_size);
|
||||||
|
strlcpy(type_str, "N/A", type_str_size);
|
||||||
|
|
||||||
|
if (*g_settings.video.softfilter_plugin)
|
||||||
|
strlcpy(type_str, path_basename(g_settings.video.softfilter_plugin),
|
||||||
|
type_str_size);
|
||||||
|
}
|
||||||
|
|
||||||
static void menu_action_setting_disp_set_label_shader_num_passes(
|
static void menu_action_setting_disp_set_label_shader_num_passes(
|
||||||
file_list_t* list,
|
file_list_t* list,
|
||||||
unsigned *w, unsigned type, unsigned i,
|
unsigned *w, unsigned type, unsigned i,
|
||||||
@ -5794,6 +5813,9 @@ static void menu_entries_cbs_init_bind_get_string_representation(menu_file_list_
|
|||||||
else if (!strcmp(label, "video_shader_default_filter"))
|
else if (!strcmp(label, "video_shader_default_filter"))
|
||||||
cbs->action_get_representation =
|
cbs->action_get_representation =
|
||||||
menu_action_setting_disp_set_label_shader_default_filter;
|
menu_action_setting_disp_set_label_shader_default_filter;
|
||||||
|
else if (!strcmp(label, "video_filter"))
|
||||||
|
cbs->action_get_representation =
|
||||||
|
menu_action_setting_disp_set_label_filter;
|
||||||
else if (!strcmp(label, "configurations"))
|
else if (!strcmp(label, "configurations"))
|
||||||
cbs->action_get_representation =
|
cbs->action_get_representation =
|
||||||
menu_action_setting_disp_set_label_configurations;
|
menu_action_setting_disp_set_label_configurations;
|
||||||
|
Loading…
Reference in New Issue
Block a user