mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 14:23:06 +00:00
(XMB) Fix display issue in settings
This commit is contained in:
parent
7ab6e9a469
commit
47c0dabc40
@ -914,12 +914,10 @@ static void xmb_draw_items(file_list_t *list, file_list_t *stack,
|
||||
icon_y > gl->win_height + xmb->icon_size)
|
||||
continue;
|
||||
|
||||
cbs = (menu_file_list_cbs_t*)
|
||||
menu_list_get_actiondata_at_offset(driver.menu->menu_list->selection_buf,
|
||||
i);
|
||||
cbs = (menu_file_list_cbs_t*)menu_list_get_actiondata_at_offset(list, i);
|
||||
|
||||
if (cbs && cbs->action_get_representation)
|
||||
cbs->action_get_representation(driver.menu->menu_list->selection_buf,
|
||||
cbs->action_get_representation(list,
|
||||
&w, type, i, label,
|
||||
type_str, sizeof(type_str),
|
||||
entry_label, path,
|
||||
|
@ -2784,7 +2784,7 @@ static void get_string_representation_savestate(void * data, char *type_str,
|
||||
*
|
||||
* Get associated label of a setting.
|
||||
**/
|
||||
void setting_data_get_label(void *data, char *type_str,
|
||||
void setting_data_get_label(file_list_t *list, char *type_str,
|
||||
size_t type_str_size, unsigned *w, unsigned type,
|
||||
const char *menu_label, const char *label, unsigned idx)
|
||||
{
|
||||
@ -2800,7 +2800,7 @@ void setting_data_get_label(void *data, char *type_str,
|
||||
return;
|
||||
|
||||
setting = (rarch_setting_t*)setting_data_find_setting(setting_data,
|
||||
driver.menu->menu_list->selection_buf->list[idx].label);
|
||||
list->list[idx].label);
|
||||
|
||||
if (setting)
|
||||
setting_data_get_string_representation(setting, type_str, type_str_size);
|
||||
|
@ -305,7 +305,7 @@ int setting_data_get_description(const char *label, char *msg,
|
||||
*
|
||||
* Get associated label of a setting.
|
||||
**/
|
||||
void setting_data_get_label(void *data, char *type_str,
|
||||
void setting_data_get_label(file_list_t *list, char *type_str,
|
||||
size_t type_str_size, unsigned *w, unsigned type,
|
||||
const char *menu_label, const char *label, unsigned idx);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user