CString -> RString

This commit is contained in:
Chris Danford
2006-01-22 01:00:06 +00:00
parent 870ed267fc
commit 7f821e8cfc
578 changed files with 3943 additions and 3946 deletions
+10 -10
View File
@@ -50,25 +50,25 @@ XToString( PixelFormat, NUM_PixelFormat );
/* bNeedReloadTextures is set to true if the device was re-created and we need
* to reload textures. On failure, an error message is returned.
* XXX: the renderer itself should probably be the one to try fallback modes */
CString RageDisplay::SetVideoMode( VideoModeParams p, bool &bNeedReloadTextures )
RString RageDisplay::SetVideoMode( VideoModeParams p, bool &bNeedReloadTextures )
{
CString err;
RString err;
err = this->TryVideoMode(p,bNeedReloadTextures);
if( err == "" )
return CString();
return RString();
LOG->Trace( "TryVideoMode failed: %s", err.c_str() );
// fall back
p.windowed = true;
if( this->TryVideoMode(p,bNeedReloadTextures) == "" )
return CString();
return RString();
p.bpp = 16;
if( this->TryVideoMode(p,bNeedReloadTextures) == "" )
return CString();
return RString();
p.width = 640;
p.height = 480;
if( this->TryVideoMode(p,bNeedReloadTextures) == "" )
return CString();
return RString();
return ssprintf( "SetVideoMode failed: %s", err.c_str() );
}
@@ -88,7 +88,7 @@ void RageDisplay::ProcessStatsOnFlip()
g_iFramesRenderedSinceLastCheck = g_iVertsRenderedSinceLastCheck = 0;
if( LOG_FPS )
{
CString sStats = GetStats();
RString sStats = GetStats();
sStats.Replace( "\n", ", " );
LOG->Trace( "%s", sStats.c_str() );
}
@@ -104,9 +104,9 @@ void RageDisplay::ResetStats()
g_LastCheckTimer.GetDeltaTime();
}
CString RageDisplay::GetStats() const
RString RageDisplay::GetStats() const
{
CString s;
RString s;
/* If FPS == 0, we don't have stats yet. */
if( !GetFPS() )
s = "-- FPS\n-- av FPS\n-- VPF";
@@ -637,7 +637,7 @@ void RageDisplay::UpdateCentering()
RageMatrixMultiply( &m_Centering, &m1, &m2 );
}
bool RageDisplay::SaveScreenshot( CString sPath, GraphicsFileFormat format )
bool RageDisplay::SaveScreenshot( RString sPath, GraphicsFileFormat format )
{
RageSurface* surface = this->CreateScreenshot();