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:
parent
6f764e6c87
commit
be28eb850a
|
@ -142,7 +142,7 @@ void OSDCLASS::addFixed(u16 x, u16 y, const char *fmt, ...)
|
||||||
|
|
||||||
if (strcmp(msg, old_msg) == 0) return;
|
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;
|
needUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -714,7 +714,7 @@ DWORD WINAPI run( LPVOID lpParameter)
|
||||||
{
|
{
|
||||||
input->process();
|
input->process();
|
||||||
|
|
||||||
if (FpsDisplay) osd->addFixed(10, 10, "%02d Fps", fps);
|
if (FpsDisplay) osd->addFixed(0, 5, "%02d Fps", fps);
|
||||||
osd->update();
|
osd->update();
|
||||||
Display();
|
Display();
|
||||||
osd->clear();
|
osd->clear();
|
||||||
|
@ -796,7 +796,7 @@ DWORD WINAPI run( LPVOID lpParameter)
|
||||||
SPU_Pause(1);
|
SPU_Pause(1);
|
||||||
}
|
}
|
||||||
frameCounter++;
|
frameCounter++;
|
||||||
if (frameCounterDisplay) osd->addFixed(200, 30, "%d",frameCounter);
|
if (frameCounterDisplay) osd->addFixed(0, 25, "%d",frameCounter);
|
||||||
|
|
||||||
CheckMessages();
|
CheckMessages();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue