Show speed in percent

This commit is contained in:
Henrik Rydgard 2013-07-27 23:21:01 +02:00
parent 44abac7ee3
commit 988b5539fa

View File

@ -524,11 +524,11 @@ void EmuScreen::render() {
char fpsbuf[256];
switch (g_Config.iShowFPSCounter) {
case 1:
sprintf(fpsbuf, "Speed: %0.1f", vps); break;
sprintf(fpsbuf, "Speed: %0.1f%%", vps / 60.0f * 100.0f); break;
case 2:
sprintf(fpsbuf, "FPS: %0.1f", fps); break;
case 3:
sprintf(fpsbuf, "Speed: %5.1f\nFPS: %0.1f", vps, fps); break;
sprintf(fpsbuf, "Speed: %0.1f%%\nFPS: %0.1f", vps / 60.0f * 100.0f, fps); break;
}
ui_draw2d.DrawText(UBUNTU24, fpsbuf, dp_xres - 8, 12, 0xc0000000, ALIGN_TOPRIGHT);
ui_draw2d.DrawText(UBUNTU24, fpsbuf, dp_xres - 10, 10, 0xFF3fFF3f, ALIGN_TOPRIGHT);