mirror of https://github.com/godotengine/godot
[Window] Fix flashing subwindows.
This commit is contained in:
parent
93d2706930
commit
f86a24fcfd
|
|
@ -1646,7 +1646,6 @@ DisplayServer::WindowID DisplayServerWindows::create_sub_window(WindowMode p_mod
|
||||||
rendering_device->screen_create(window_id);
|
rendering_device->screen_create(window_id);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
wd.initialized = true;
|
|
||||||
return window_id;
|
return window_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1674,6 +1673,7 @@ void DisplayServerWindows::show_window(WindowID p_id) {
|
||||||
if (p_id != MAIN_WINDOW_ID) {
|
if (p_id != MAIN_WINDOW_ID) {
|
||||||
_update_window_style(p_id);
|
_update_window_style(p_id);
|
||||||
}
|
}
|
||||||
|
wd.initialized = true;
|
||||||
|
|
||||||
if (wd.maximized) {
|
if (wd.maximized) {
|
||||||
ShowWindow(wd.hWnd, SW_SHOWMAXIMIZED);
|
ShowWindow(wd.hWnd, SW_SHOWMAXIMIZED);
|
||||||
|
|
@ -6998,7 +6998,6 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
windows[MAIN_WINDOW_ID].initialized = true;
|
|
||||||
show_window(MAIN_WINDOW_ID);
|
show_window(MAIN_WINDOW_ID);
|
||||||
|
|
||||||
#if defined(RD_ENABLED)
|
#if defined(RD_ENABLED)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue