Fix windows?
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
static HBITMAP g_hBitmap = NULL;
|
static HBITMAP g_hBitmap = NULL;
|
||||||
|
|
||||||
/* Load a RageSurface into a GDI surface. */
|
/* 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;
|
RageSurface *s;
|
||||||
if( !RageSurfaceUtils::ConvertSurface( pSplash, s,
|
if( !RageSurfaceUtils::ConvertSurface( pSplash, s,
|
||||||
@@ -73,6 +73,18 @@ static HBITMAP LoadWin32Surface( const RageSurface *pSplash, HWND hwnd )
|
|||||||
return bitmap;
|
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 )
|
BOOL CALLBACK LoadingWindow_Win32::WndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam )
|
||||||
{
|
{
|
||||||
switch( msg )
|
switch( msg )
|
||||||
|
|||||||
Reference in New Issue
Block a user