diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-25 15:09:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 15:09:11 +0200 |
commit | 9de724f327c21a4c03300798b9dc2f8df29d553a (patch) | |
tree | 1c4d78ef656d97a2609a3b6b2b6da44f89115fdf /scene/main | |
parent | ece9a0f40080e7e4f97733473ed7bddf846afa57 (diff) | |
parent | dc2e73499a3264c6c77eb4ddadb6961d684c2941 (diff) |
Merge pull request #23091 from aaronfranke/mingw-warnings
Fix some compile warnings for Windows from Linux
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/viewport.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 97e746907d..6bf1d12086 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -629,10 +629,8 @@ Rect2 Viewport::get_visible_rect() const { Rect2 r; if (size == Size2()) { - - r = Rect2(Point2(), Size2(OS::get_singleton()->get_window_size().width, OS::get_singleton()->get_window_size().height)); + r = Rect2(Point2(), OS::get_singleton()->get_window_size()); } else { - r = Rect2(Point2(), size); } |