mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 23:06:40 +00:00
(GX/XDK) Have console ports use gfx_fps_title instead of gfx_window_title
This commit is contained in:
parent
d79ba6a9da
commit
41b1bd3ed0
@ -828,12 +828,12 @@ static bool gx_frame(void *data, const void *frame,
|
||||
|
||||
if (g_extern.console.rmenu.state.msg_fps.enable)
|
||||
{
|
||||
static char fps_txt[128];
|
||||
char fps_txt[128];
|
||||
char mem1_txt[128];
|
||||
unsigned x = 15;
|
||||
unsigned y = 15;
|
||||
|
||||
gfx_window_title(fps_txt, sizeof(fps_txt));
|
||||
gfx_fps_title(fps_txt, sizeof(fps_txt));
|
||||
gx_blit_line(x, y, fps_txt);
|
||||
y += FONT_HEIGHT * (gx->double_strike ? 1 : 2);
|
||||
snprintf(mem1_txt, sizeof(mem1_txt), "MEM1: %8d / %8d", SYSMEM1_SIZE - SYS_GetArena1Size(), SYSMEM1_SIZE);
|
||||
|
@ -779,13 +779,13 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
|
||||
//Output memory usage
|
||||
|
||||
static char fps_txt[128];
|
||||
char fps_txt[128];
|
||||
char buf[128];
|
||||
bool ret = false;
|
||||
snprintf(buf, sizeof(buf), "%.2f MB free / %.2f MB total", stat.dwAvailPhys/(1024.0f*1024.0f), stat.dwTotalPhys/(1024.0f*1024.0f));
|
||||
xfonts_render_msg_place(d3d, font_x + 30, font_y + 50, 0 /* scale */, buf);
|
||||
|
||||
gfx_window_title(fps_txt, sizeof(fps_txt));
|
||||
gfx_fps_title(fps_txt, sizeof(fps_txt));
|
||||
xfonts_render_msg_place(d3d, font_x + 30, font_y + 70, 0 /* scale */, fps_txt);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user