Fixes the splash screen so that it displays until the game has actually done initial setup and can display GUI elements. This prevents the ugly blank window just sitting there while the GUI loads.

This commit is contained in:
Areloch 2014-07-15 17:44:19 -05:00
parent 8390c4159f
commit c2da67d473
11 changed files with 74 additions and 6 deletions

View file

@ -54,6 +54,8 @@ Win32WindowManager::Win32WindowManager()
mOffscreenRender = false;
mDisplayWindow = false;
buildMonitorsList();
}
@ -263,11 +265,10 @@ PlatformWindow *Win32WindowManager::createWindow(GFXDevice *device, const GFXVid
// If we're not rendering offscreen, make sure our window is shown and drawn to.
if (!mOffscreenRender)
ShowWindow( w32w->mWindowHandle, SW_SHOWDEFAULT );
w32w->setDisplayWindow(mDisplayWindow);
// Close any splash screen we created
CloseSplashWindow(winState.appInstance);
if (!mOffscreenRender && mDisplayWindow)
ShowWindow( w32w->mWindowHandle, SW_SHOWDEFAULT );
// Bind the window to the specified device.
if(device)