summaryrefslogtreecommitdiff
path: root/scene/main/scene_main_loop.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-13 20:00:43 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-13 20:00:43 -0300
commit6e88b1096a6876f919f70e39638e8e24fcdefc7a (patch)
treefb08730c2735138019f1815ab9a3233bad61b1e0 /scene/main/scene_main_loop.cpp
parent00ec16e3f3a98339ec7462675fa41b3dd240861b (diff)
Vector2.get_aspect() renamed to Vector2.aspect() to keep consistent method naming
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
-rw-r--r--scene/main/scene_main_loop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp
index d233bf1a72..75af716f65 100644
--- a/scene/main/scene_main_loop.cpp
+++ b/scene/main/scene_main_loop.cpp
@@ -1138,8 +1138,8 @@ void SceneTree::_update_root_rect() {
Size2 viewport_size;
Size2 screen_size;
- float viewport_aspect = desired_res.get_aspect();
- float video_mode_aspect = video_mode.get_aspect();
+ float viewport_aspect = desired_res.aspect();
+ float video_mode_aspect = video_mode.aspect();
if (stretch_aspect==STRETCH_ASPECT_IGNORE || ABS(viewport_aspect - video_mode_aspect)<CMP_EPSILON) {
//same aspect or ignore aspect