Fix for custom frame limit crashing pcsx2 on startup. Thanks to tmkkmac for spotting it ;)

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@358 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
ramapcsx2 2008-11-22 20:54:55 +00:00 committed by Gregory Hainaut
parent 278f164683
commit 266875132d
1 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ static __forceinline void vSyncInfoCalc( vSyncTimingInfo* info, u32 framesPerSec
void UpdateVSyncRate()
{
const char *limiterMsg = "Framelimiter rate updated (UpdateVSyncRate): %s fps\n";
const char *limiterMsg = "Framelimiter rate updated (UpdateVSyncRate): %.2f fps\n";
// fixme - According to some docs, progressive-scan modes actually refresh slower than
// interlaced modes. But I can't fathom how, since the refresh rate is a function of
@ -263,7 +263,7 @@ void UpdateVSyncRate()
if( iTicks != ticks )
{
iTicks = ticks;
SysPrintf( limiterMsg, Config.CustomFps );
SysPrintf( limiterMsg, (float)Config.CustomFps );
}
}
else
@ -272,7 +272,7 @@ void UpdateVSyncRate()
if( iTicks != ticks )
{
iTicks = ticks;
SysPrintf( limiterMsg, (Config.PsxType & 1) ? "50" : "59.94" );
SysPrintf( limiterMsg, (Config.PsxType & 1) ? 50.00 : 59.94 );
}
}