diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-01 16:28:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-01 16:28:48 +0200 |
| commit | 9000e596502c45b5611768efcd30e76556209717 (patch) | |
| tree | 486b63209cbade48aadd9792710d4b685c688928 /servers/display_server.cpp | |
| parent | 2fc3c5bb9f0250cb5caecb79f8dc00c100d1e189 (diff) | |
| parent | 372136fe75e9f042d2284bae46d2879950f4d399 (diff) | |
| download | redot-engine-9000e596502c45b5611768efcd30e76556209717.tar.gz | |
Merge pull request #40016 from akien-mga/environment-code-cleanup
Environment: Refactor code for readability + more
Diffstat (limited to 'servers/display_server.cpp')
| -rw-r--r-- | servers/display_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp index 0ea11a2670..83e0a797a9 100644 --- a/servers/display_server.cpp +++ b/servers/display_server.cpp @@ -181,7 +181,7 @@ bool DisplayServer::screen_is_kept_on() const { return false; } -DisplayServer::WindowID DisplayServer::create_sub_window(WindowMode p_mode, uint32_t p_flags, const Rect2i &) { +DisplayServer::WindowID DisplayServer::create_sub_window(WindowMode p_mode, uint32_t p_flags, const Rect2i &p_rect) { ERR_FAIL_V_MSG(INVALID_WINDOW_ID, "Sub-windows not supported by this display server."); } @@ -402,7 +402,7 @@ void DisplayServer::_bind_methods() { ClassDB::bind_method(D_METHOD("get_window_list"), &DisplayServer::get_window_list); ClassDB::bind_method(D_METHOD("get_window_at_screen_position", "position"), &DisplayServer::get_window_at_screen_position); - ClassDB::bind_method(D_METHOD("create_sub_window", "mode", "rect"), &DisplayServer::create_sub_window, DEFVAL(Rect2i())); + ClassDB::bind_method(D_METHOD("create_sub_window", "mode", "flags", "rect"), &DisplayServer::create_sub_window, DEFVAL(Rect2i())); ClassDB::bind_method(D_METHOD("delete_sub_window", "window_id"), &DisplayServer::delete_sub_window); ClassDB::bind_method(D_METHOD("window_set_title", "title", "window_id"), &DisplayServer::window_set_title, DEFVAL(MAIN_WINDOW_ID)); |
