(GX/XDK) Have console ports use gfx_fps_title instead of gfx_window_title

This commit is contained in:
twinaphex 2012-11-18 02:32:58 +01:00
parent d79ba6a9da
commit 41b1bd3ed0
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}