mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 10:31:15 +00:00
Rename Rect2 and Rect2i clip() to intersection()
This commit is contained in:
parent
16524d4ae1
commit
2df9a8ccad
17 changed files with 60 additions and 58 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue