From bbb9de2712ced4298084cafc463efa7f47db5887 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 1 Mar 2014 00:01:11 +0100 Subject: [PATCH] (XUI) Update labels #2 --- frontend/menu/disp/rmenu_xui.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/menu/disp/rmenu_xui.cpp b/frontend/menu/disp/rmenu_xui.cpp index d85230b07a..db839a446c 100644 --- a/frontend/menu/disp/rmenu_xui.cpp +++ b/frontend/menu/disp/rmenu_xui.cpp @@ -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)