From ec69c7769b2bbce625bfe261fa94786a7017c2ae Mon Sep 17 00:00:00 2001 From: phantom Date: Wed, 2 Jan 2013 17:46:21 +0100 Subject: [PATCH] More Windows loading. --- src/arch/LoadingWindow/LoadingWindow_Win32.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/arch/LoadingWindow/LoadingWindow_Win32.cpp b/src/arch/LoadingWindow/LoadingWindow_Win32.cpp index 034f60d4a1..6826115d5f 100644 --- a/src/arch/LoadingWindow/LoadingWindow_Win32.cpp +++ b/src/arch/LoadingWindow/LoadingWindow_Win32.cpp @@ -22,13 +22,9 @@ static HBITMAP g_hBitmap = NULL; /* Load a RageSurface into a GDI surface. */ static HBITMAP LoadWin32Surface( const RageSurface *pSplash, HWND hWnd ) { - RageSurface *s; - if( !RageSurfaceUtils::ConvertSurface( pSplash, s, - pSplash->w, pSplash->h, 32, - 0xFF000000, 0x00FF0000, 0x0000FF00, 0 ) ) - { - return NULL; - } + RageSurface *s = CreateSurface( pSplash->w, pSplash->h, 32, + 0xFF000000, 0x00FF0000, 0x0000FF00, 0 ); + RageSurfaceUtils::Blit( pSplash, s , -1, -1 ); /* Resize the splash image to fit the dialog. Stretch to fit horizontally, * maintaining aspect ratio. */