mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 13:30:34 +00:00
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:
parent
8390c4159f
commit
c2da67d473
11 changed files with 74 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue