diff --git a/src/arch/LoadingWindow/LoadingWindow_Win32.cpp b/src/arch/LoadingWindow/LoadingWindow_Win32.cpp index 82de0c98f6..034f60d4a1 100644 --- a/src/arch/LoadingWindow/LoadingWindow_Win32.cpp +++ b/src/arch/LoadingWindow/LoadingWindow_Win32.cpp @@ -20,7 +20,7 @@ static HBITMAP g_hBitmap = NULL; /* Load a RageSurface into a GDI surface. */ -static HBITMAP LoadWin32Surface( const RageSurface *pSplash, HWND hwnd ) +static HBITMAP LoadWin32Surface( const RageSurface *pSplash, HWND hWnd ) { RageSurface *s; if( !RageSurfaceUtils::ConvertSurface( pSplash, s, @@ -73,6 +73,18 @@ static HBITMAP LoadWin32Surface( const RageSurface *pSplash, HWND hwnd ) return bitmap; } +static HBITMAP LoadWin32Surface( RString sFile, HWND hWnd ) +{ + RString error; + RageSurface *pSurface = RageSurfaceUtils::LoadFile( sFile, error ); + if( pSurface == NULL ) + return NULL; + + HBITMAP ret = LoadWin32Surface( pSurface, hWnd ); + delete pSurface; + return ret; +} + BOOL CALLBACK LoadingWindow_Win32::WndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg )