(XUI) Update labels #2

This commit is contained in:
twinaphex 2014-03-01 00:01:11 +01:00
parent 5440704503
commit bbb9de2712

View File

@ -566,23 +566,21 @@ static void rmenu_xui_render(void *data)
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
#if 0
if ((type == RGUI_FILE_PLAIN || type == RGUI_FILE_DIRECTORY))
menu_ticker_line(entry_title_buf, RXUI_TERM_WIDTH - (w + 1 + 2), g_extern.frame_count / 15, path, selected);
else
menu_ticker_line(type_str_buf, w, g_extern.frame_count / 15, type_str, selected);
#endif
snprintf(message, sizeof(message), "%c %-*.*s %-*s",
selected ? '>' : ' ',
RXUI_TERM_WIDTH - (w + 1 + 2), RXUI_TERM_WIDTH - (w + 1 + 2),
snprintf(message, sizeof(message), "%s : %s",
entry_title_buf,
w,
type_str_buf);
wchar_t msg_w[256];
mbstowcs(msg_w, message, sizeof(msg_w) / sizeof(wchar_t));
XuiListSetText(m_menulist, selected, msg_w);
blit_line(rgui, x, y, message, selected);
XuiListSetText(m_menulist, i, msg_w);
blit_line(rgui, x, y, message, i);
}
if (rgui->keyboard.display)