Fixups to display in history.

This commit is contained in:
Themaister 2013-04-28 01:43:37 +02:00
parent 5293f0e1fc
commit 62e2586116
2 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,7 @@ void rom_history_push(rom_history_t *hist,
// Seen it before, bump to top.
struct rom_history_entry tmp = hist->entries[i];
memmove(hist->entries + 1, hist->entries,
(i - 1) * sizeof(struct rom_history_entry));
i * sizeof(struct rom_history_entry));
hist->entries[0] = tmp;
return;
}

View File

@ -527,6 +527,11 @@ static void render_text(rgui_handle_t *rgui)
w = 5;
}
}
else if (menu_type == RGUI_SETTINGS_OPEN_HISTORY)
{
*type_str = '\0';
w = 0;
}
else if (type >= RGUI_SETTINGS_CORE_OPTION_START)
strlcpy(type_str, core_option_get_val(g_extern.system.core_options, type - RGUI_SETTINGS_CORE_OPTION_START), sizeof(type_str));
else