More Windows loading.

This commit is contained in:
phantom
2013-01-02 17:46:21 +01:00
parent 3fb91639b3
commit ec69c7769b
@@ -22,13 +22,9 @@ 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 = CreateSurface( pSplash->w, pSplash->h, 32,
if( !RageSurfaceUtils::ConvertSurface( pSplash, s, 0xFF000000, 0x00FF0000, 0x0000FF00, 0 );
pSplash->w, pSplash->h, 32, RageSurfaceUtils::Blit( pSplash, s , -1, -1 );
0xFF000000, 0x00FF0000, 0x0000FF00, 0 ) )
{
return NULL;
}
/* Resize the splash image to fit the dialog. Stretch to fit horizontally, /* Resize the splash image to fit the dialog. Stretch to fit horizontally,
* maintaining aspect ratio. */ * maintaining aspect ratio. */