fixed void OSDCLASS::addFixed so that it actually uses the u16 x and u16 y values that it receives.

Win32 - fixed so that fps and framecounter display in different places
This commit is contained in:
adelikat 2008-11-09 19:26:50 +00:00
parent 6f764e6c87
commit be28eb850a
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ void OSDCLASS::addFixed(u16 x, u16 y, const char *fmt, ...)
if (strcmp(msg, old_msg) == 0) return;
render51.PrintString<DesmumeFont>(1,0,0,render51.MakeColor(128,0,0),msg,&screenshell);
render51.PrintString<DesmumeFont>(1,x,y,render51.MakeColor(128,0,0),msg,&screenshell);
needUpdate = true;
}

View File

@ -714,7 +714,7 @@ DWORD WINAPI run( LPVOID lpParameter)
{
input->process();
if (FpsDisplay) osd->addFixed(10, 10, "%02d Fps", fps);
if (FpsDisplay) osd->addFixed(0, 5, "%02d Fps", fps);
osd->update();
Display();
osd->clear();
@ -796,7 +796,7 @@ DWORD WINAPI run( LPVOID lpParameter)
SPU_Pause(1);
}
frameCounter++;
if (frameCounterDisplay) osd->addFixed(200, 30, "%d",frameCounter);
if (frameCounterDisplay) osd->addFixed(0, 25, "%d",frameCounter);
CheckMessages();
}