mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
(XUI) Show menu labels
This commit is contained in:
parent
f479149364
commit
ca8aa77a6b
@ -154,12 +154,10 @@ HRESULT CRetroArchMain::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
|||||||
GetChildById(L"XuiTxtTitle", &m_menutitle);
|
GetChildById(L"XuiTxtTitle", &m_menutitle);
|
||||||
GetChildById(L"XuiTxtBottom", &m_menutitlebottom);
|
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];
|
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));
|
mbstowcs(strw_buffer, str, sizeof(strw_buffer) / sizeof(wchar_t));
|
||||||
XuiTextElementSetText(m_menutitle, strw_buffer);
|
XuiTextElementSetText(m_menutitlebottom, strw_buffer);
|
||||||
|
|
||||||
return 0;
|
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];
|
char title_buf[256];
|
||||||
menu_ticker_line(title_buf, RXUI_TERM_WIDTH - 3, g_extern.frame_count / 15, title, true);
|
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);
|
blit_line(rgui, RXUI_TERM_START_X + 15, 15, title_buf, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user