SDL: Set window state on create.

This commit is contained in:
and3md 2017-05-06 12:54:17 +02:00
parent 627e3cb11b
commit f623ddc06a
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ class SDLWindow : Window {
this(SDLPlatform platform, dstring caption, Window parent, uint flags, uint width = 0, uint height = 0) {
_platform = platform;
_caption = caption;
_windowState = WindowState.hidden;
_parent = cast(SDLWindow) parent;
if (_parent)
_parent._children~=this;