(XMB) Fix display issue in settings

This commit is contained in:
Jean-André Santoni 2015-02-03 04:24:34 +01:00
parent 7ab6e9a469
commit 47c0dabc40
3 changed files with 5 additions and 7 deletions

View File

@ -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) icon_y > gl->win_height + xmb->icon_size)
continue; continue;
cbs = (menu_file_list_cbs_t*) cbs = (menu_file_list_cbs_t*)menu_list_get_actiondata_at_offset(list, i);
menu_list_get_actiondata_at_offset(driver.menu->menu_list->selection_buf,
i);
if (cbs && cbs->action_get_representation) 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, &w, type, i, label,
type_str, sizeof(type_str), type_str, sizeof(type_str),
entry_label, path, entry_label, path,

View File

@ -2784,7 +2784,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(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, 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)
{ {
@ -2800,7 +2800,7 @@ void setting_data_get_label(void *data, char *type_str,
return; return;
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 (setting) if (setting)
setting_data_get_string_representation(setting, type_str, type_str_size); setting_data_get_string_representation(setting, type_str, type_str_size);

View File

@ -305,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(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, 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