From ca8aa77a6bab1bc3231961d185edf58b38edacd3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 2 Mar 2014 22:52:48 +0100 Subject: [PATCH] (XUI) Show menu labels --- frontend/menu/disp/rmenu_xui.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/menu/disp/rmenu_xui.cpp b/frontend/menu/disp/rmenu_xui.cpp index e71f4a6ddb..93f797006a 100644 --- a/frontend/menu/disp/rmenu_xui.cpp +++ b/frontend/menu/disp/rmenu_xui.cpp @@ -154,12 +154,10 @@ HRESULT CRetroArchMain::OnInit(XUIMessageInit * pInitData, BOOL& bHandled) GetChildById(L"XuiTxtTitle", &m_menutitle); GetChildById(L"XuiTxtBottom", &m_menutitlebottom); - mbstowcs(strw_buffer, g_extern.title_buf, sizeof(strw_buffer) / sizeof(wchar_t)); - XuiTextElementSetText(m_menutitlebottom, strw_buffer); char str[PATH_MAX]; - snprintf(str, sizeof(str), "RetroArch %s", PACKAGE_VERSION); + snprintf(str, sizeof(str), "%s - %s", PACKAGE_VERSION, g_extern.title_buf); mbstowcs(strw_buffer, str, sizeof(strw_buffer) / sizeof(wchar_t)); - XuiTextElementSetText(m_menutitle, strw_buffer); + XuiTextElementSetText(m_menutitlebottom, strw_buffer); return 0; } @@ -447,6 +445,9 @@ static void rmenu_xui_render(void *data) } } + mbstowcs(strw_buffer, title, sizeof(strw_buffer) / sizeof(wchar_t)); + XuiTextElementSetText(m_menutitle, strw_buffer); + char title_buf[256]; menu_ticker_line(title_buf, RXUI_TERM_WIDTH - 3, g_extern.frame_count / 15, title, true); blit_line(rgui, RXUI_TERM_START_X + 15, 15, title_buf, true);