mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-10 16:14:52 +00:00
(XMB) Fix a setting values display bug by using a more precise context
This commit is contained in:
parent
9a261d36c0
commit
89b582c99a
@ -279,7 +279,7 @@ static INLINE void disp_set_label(file_list_t* list,
|
|||||||
type - MENU_SETTINGS_CORE_OPTION_START),
|
type - MENU_SETTINGS_CORE_OPTION_START),
|
||||||
type_str_size);
|
type_str_size);
|
||||||
else
|
else
|
||||||
setting_data_get_label(type_str,
|
setting_data_get_label(list, type_str,
|
||||||
type_str_size, w, type, label, entry_label, i);
|
type_str_size, w, type, label, entry_label, i);
|
||||||
|
|
||||||
strlcpy(path_buf, path, path_buf_size);
|
strlcpy(path_buf, path, path_buf_size);
|
||||||
|
@ -2804,6 +2804,7 @@ static void get_string_representation_savestate(void * data, char *type_str,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* setting_data_get_label:
|
* setting_data_get_label:
|
||||||
|
* @list : File list on which to perform the search
|
||||||
* @type_str : String for the type to be represented on-screen as
|
* @type_str : String for the type to be represented on-screen as
|
||||||
* a label.
|
* a label.
|
||||||
* @type_str_size : Size of @type_str
|
* @type_str_size : Size of @type_str
|
||||||
@ -2816,7 +2817,7 @@ static void get_string_representation_savestate(void * data, char *type_str,
|
|||||||
*
|
*
|
||||||
* Get associated label of a setting.
|
* Get associated label of a setting.
|
||||||
**/
|
**/
|
||||||
void setting_data_get_label(char *type_str,
|
void setting_data_get_label(file_list_t* list, char *type_str,
|
||||||
size_t type_str_size, unsigned *w, unsigned type,
|
size_t type_str_size, unsigned *w, unsigned type,
|
||||||
const char *menu_label, const char *label, unsigned idx)
|
const char *menu_label, const char *label, unsigned idx)
|
||||||
{
|
{
|
||||||
@ -2828,7 +2829,7 @@ void setting_data_get_label(char *type_str,
|
|||||||
|
|
||||||
setting_data = (rarch_setting_t*)driver.menu->list_settings;
|
setting_data = (rarch_setting_t*)driver.menu->list_settings;
|
||||||
setting = (rarch_setting_t*)setting_data_find_setting(setting_data,
|
setting = (rarch_setting_t*)setting_data_find_setting(setting_data,
|
||||||
driver.menu->menu_list->selection_buf->list[idx].label);
|
list->list[idx].label);
|
||||||
|
|
||||||
if ((get_fallback_label(type_str, type_str_size, w, type, menu_label,
|
if ((get_fallback_label(type_str, type_str_size, w, type, menu_label,
|
||||||
label, idx)) == 0)
|
label, idx)) == 0)
|
||||||
|
@ -292,6 +292,7 @@ int setting_data_get_description(const char *label, char *msg,
|
|||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
/**
|
/**
|
||||||
* setting_data_get_label:
|
* setting_data_get_label:
|
||||||
|
* @list : File list on which to perform the search
|
||||||
* @type_str : String for the type to be represented on-screen as
|
* @type_str : String for the type to be represented on-screen as
|
||||||
* a label.
|
* a label.
|
||||||
* @type_str_size : Size of @type_str
|
* @type_str_size : Size of @type_str
|
||||||
@ -304,7 +305,7 @@ int setting_data_get_description(const char *label, char *msg,
|
|||||||
*
|
*
|
||||||
* Get associated label of a setting.
|
* Get associated label of a setting.
|
||||||
**/
|
**/
|
||||||
void setting_data_get_label(char *type_str,
|
void setting_data_get_label(file_list_t* list, char *type_str,
|
||||||
size_t type_str_size, unsigned *w, unsigned type,
|
size_t type_str_size, unsigned *w, unsigned type,
|
||||||
const char *menu_label, const char *label, unsigned idx);
|
const char *menu_label, const char *label, unsigned idx);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user