diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-19 12:43:35 +0000 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-19 12:59:08 +0000 |
commit | 2df9a8ccadf3e7f99d767456eedb0e559c96572c (patch) | |
tree | 9003944ed17b8c4d28d2991a4e97f8845c25e685 /platform | |
parent | 16524d4ae1d2dc8643b97349dbbba603de77fc2b (diff) |
Rename Rect2 and Rect2i clip() to intersection()
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/display_server_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp index 62fcd20f61..520b43f963 100644 --- a/platform/windows/display_server_windows.cpp +++ b/platform/windows/display_server_windows.cpp @@ -2956,7 +2956,7 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode, Rect2i r; r.position = screen_get_position(i); r.size = screen_get_size(i); - Rect2 inters = r.clip(p_rect); + Rect2 inters = r.intersection(p_rect); int area = inters.size.width * inters.size.height; if (area >= nearest_area) { screen_rect = r; |