summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-25 15:09:11 +0200
committerGitHub <noreply@github.com>2018-10-25 15:09:11 +0200
commit9de724f327c21a4c03300798b9dc2f8df29d553a (patch)
tree1c4d78ef656d97a2609a3b6b2b6da44f89115fdf /scene/main
parentece9a0f40080e7e4f97733473ed7bddf846afa57 (diff)
parentdc2e73499a3264c6c77eb4ddadb6961d684c2941 (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.cpp4
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);
}