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

@ -56,6 +56,10 @@ class Win32WindowManager : public PlatformWindowManager
// is intended for offscreen rendering
bool mOffscreenRender;
/// This is set as part of the canvas being shown, and flags that the windows should render as normal from now on.
// Basically a flag that lets the window manager know that we've handled the splash screen, and to operate as normal.
bool mDisplayWindow;
/// Internal structure used when enumerating monitors
struct MonitorInfo {
HMONITOR monitorHandle;
@ -117,6 +121,8 @@ public:
virtual void lowerCurtain();
virtual void raiseCurtain();
virtual void setDisplayWindow(bool set) { mDisplayWindow = set; }
};
#endif