mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +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
|
|
@ -153,7 +153,9 @@ void Win32Window::setVideoMode( const GFXVideoMode &mode )
|
|||
{
|
||||
SetWindowLong( getHWND(), GWL_STYLE, WS_POPUP);
|
||||
SetWindowPos( getHWND(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
|
||||
ShowWindow(getHWND(), SW_SHOWNORMAL);
|
||||
|
||||
if(mDisplayWindow)
|
||||
ShowWindow(getHWND(), SW_SHOWNORMAL);
|
||||
|
||||
// Clear the menu bar from the window for full screen
|
||||
HMENU menu = GetMenu(getHWND());
|
||||
|
|
@ -216,7 +218,9 @@ void Win32Window::setVideoMode( const GFXVideoMode &mode )
|
|||
// We have to force Win32 to update the window frame and make the window
|
||||
// visible and no longer topmost - this code might be possible to simplify.
|
||||
SetWindowPos( getHWND(), HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED);
|
||||
ShowWindow( getHWND(), SW_SHOWNORMAL);
|
||||
|
||||
if(mDisplayWindow)
|
||||
ShowWindow( getHWND(), SW_SHOWNORMAL);
|
||||
}
|
||||
|
||||
mFullscreen = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue