Splash should show up properly now.

This commit is contained in:
phantom
2013-01-01 17:40:29 +01:00
parent f6410abd43
commit 5fa1e3d2a0
12 changed files with 73 additions and 48 deletions
+8 -5
View File
@@ -1093,11 +1093,14 @@ int main(int argc, char* argv[])
/* Now that THEME is loaded, load the icon and splash for the current
* theme into the loading window. */
RString sError;
RageSurface *pIcon = RageSurfaceUtils::LoadFile( THEME->GetPathG( "Common", "window icon" ), sError );
if( pIcon )
pLoadingWindow->SetIcon( pIcon );
delete pIcon;
pLoadingWindow->SetSplash( THEME->GetPathG("Common","splash") );
RageSurface *pSurface = RageSurfaceUtils::LoadFile( THEME->GetPathG( "Common", "window icon" ), sError );
if( pSurface != NULL )
pLoadingWindow->SetIcon( pSurface );
delete pSurface;
pSurface = RageSurfaceUtils::LoadFile( THEME->GetPathG("Common","splash"), sError );
if( pSurface != NULL )
pLoadingWindow->SetSplash( pSurface );
delete pSurface;
}
if( PREFSMAN->m_iSoundWriteAhead )