mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 18:50:29 +00:00
Backport new element display settings to GLUI/RGUI
This commit is contained in:
parent
fc4c5ffa7c
commit
50c89847f0
@ -314,28 +314,32 @@ static void glui_frame(menu_handle_t *menu)
|
||||
if (!core_name)
|
||||
core_name = "No Core";
|
||||
|
||||
core_version = g_extern.menu.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = g_extern.system.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = "";
|
||||
if (g_settings.menu.core_enable)
|
||||
{
|
||||
core_version = g_extern.menu.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = g_extern.system.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = "";
|
||||
|
||||
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", PACKAGE_VERSION,
|
||||
core_name, core_version);
|
||||
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", PACKAGE_VERSION,
|
||||
core_name, core_version);
|
||||
|
||||
disp_timedate_set_label(timedate, sizeof(timedate), 0);
|
||||
glui_blit_line(gl,
|
||||
glui->margin * 2,
|
||||
glui->margin + glui->term_height * glui->line_height
|
||||
+ glui->line_height * 2, title_msg, true);
|
||||
}
|
||||
|
||||
glui_blit_line(gl,
|
||||
glui->margin * 2,
|
||||
glui->margin + glui->term_height * glui->line_height
|
||||
+ glui->line_height * 2, title_msg, true);
|
||||
|
||||
if (g_settings.menu.timedate_enable)
|
||||
{
|
||||
disp_timedate_set_label(timedate, sizeof(timedate), 0);
|
||||
glui_blit_line(gl,
|
||||
glui->margin * 14,
|
||||
glui->margin + glui->term_height * glui->line_height
|
||||
+ glui->line_height * 2, timedate, true);
|
||||
|
||||
}
|
||||
|
||||
x = glui->margin;
|
||||
y = glui->margin + glui->line_height * 2;
|
||||
|
@ -353,26 +353,32 @@ static void rgui_render(menu_handle_t *menu)
|
||||
if (!core_name)
|
||||
core_name = "No Core";
|
||||
|
||||
core_version = g_extern.menu.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = g_extern.system.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = "";
|
||||
if (g_settings.menu.core_enable)
|
||||
{
|
||||
core_version = g_extern.menu.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = g_extern.system.info.library_version;
|
||||
if (!core_version)
|
||||
core_version = "";
|
||||
|
||||
disp_timedate_set_label(timedate, sizeof(timedate), 3);
|
||||
|
||||
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", PACKAGE_VERSION,
|
||||
core_name, core_version);
|
||||
blit_line(menu,
|
||||
RGUI_TERM_START_X + RGUI_TERM_START_X,
|
||||
(RGUI_TERM_HEIGHT * FONT_HEIGHT_STRIDE) +
|
||||
RGUI_TERM_START_Y + 2, title_msg, true);
|
||||
snprintf(title_msg, sizeof(title_msg), "%s - %s %s", PACKAGE_VERSION,
|
||||
core_name, core_version);
|
||||
blit_line(menu,
|
||||
RGUI_TERM_START_X + RGUI_TERM_START_X,
|
||||
(RGUI_TERM_HEIGHT * FONT_HEIGHT_STRIDE) +
|
||||
RGUI_TERM_START_Y + 2, title_msg, true);
|
||||
}
|
||||
|
||||
if (g_settings.menu.timedate_enable)
|
||||
{
|
||||
disp_timedate_set_label(timedate, sizeof(timedate), 3);
|
||||
|
||||
blit_line(menu,
|
||||
(RGUI_TERM_WIDTH * FONT_HEIGHT_STRIDE) + (60),
|
||||
(RGUI_TERM_HEIGHT * FONT_HEIGHT_STRIDE) +
|
||||
RGUI_TERM_START_Y + 2, timedate, true);
|
||||
}
|
||||
|
||||
|
||||
x = RGUI_TERM_START_X;
|
||||
|
@ -1023,20 +1023,13 @@ static void xmb_frame(menu_handle_t *menu)
|
||||
|
||||
xmb_render_background(gl, xmb, false);
|
||||
|
||||
core_name = g_extern.menu.info.library_name;
|
||||
|
||||
if (!core_name)
|
||||
core_name = g_extern.system.info.library_name;
|
||||
if (!core_name)
|
||||
core_name = "No Core";
|
||||
|
||||
xmb_draw_text(gl, xmb,
|
||||
xmb->title.name, xmb->title.margin.left, xmb->title.margin.top, 1, 1, 0);
|
||||
|
||||
disp_timedate_set_label(timedate, sizeof(timedate), 0);
|
||||
|
||||
if (g_settings.menu.timedate_enable)
|
||||
{
|
||||
disp_timedate_set_label(timedate, sizeof(timedate), 0);
|
||||
|
||||
xmb_draw_text(gl, xmb,
|
||||
timedate, gl->win_width - xmb->title.margin.left - xmb->icon.size / 4,
|
||||
xmb->title.margin.top, 1, 1, 1);
|
||||
@ -1047,6 +1040,13 @@ static void xmb_frame(menu_handle_t *menu)
|
||||
|
||||
if (g_settings.menu.core_enable)
|
||||
{
|
||||
core_name = g_extern.menu.info.library_name;
|
||||
|
||||
if (!core_name)
|
||||
core_name = g_extern.system.info.library_name;
|
||||
if (!core_name)
|
||||
core_name = "No Core";
|
||||
|
||||
core_version = g_extern.menu.info.library_version;
|
||||
|
||||
if (!core_version)
|
||||
|
Loading…
Reference in New Issue
Block a user