diff options
author | crupest <crupest@outlook.com> | 2021-11-20 22:43:30 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-20 22:43:30 +0800 |
commit | a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c (patch) | |
tree | 32c01c22e21742ae0c9febb2cbc26339f99eec1d /src/ui/controls/Window.cpp | |
parent | 1a53ed0791d9793ed8030d3a44e833e5e7c4542b (diff) | |
download | cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.gz cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.bz2 cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.zip |
...
Diffstat (limited to 'src/ui/controls/Window.cpp')
-rw-r--r-- | src/ui/controls/Window.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ui/controls/Window.cpp b/src/ui/controls/Window.cpp index ba66f42e..00fab8e9 100644 --- a/src/ui/controls/Window.cpp +++ b/src/ui/controls/Window.cpp @@ -12,13 +12,8 @@ Window* Window::Create(Control* attached_control) { return new Window(attached_control); } -Window::Window(Control* attached_control) : RootControl(attached_control) {} +Window::Window(Control* attached_control) + : RootControl(attached_control, host::CreateWindowParams{}) {} Window::~Window() {} - -gsl::not_null<platform::gui::INativeWindow*> Window::CreateNativeWindow( - gsl::not_null<host::WindowHost*> host, - platform::gui::INativeWindow* parent) { - return host->CreateNativeWindow({parent}); -} } // namespace cru::ui::controls |