1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Vector2.get_aspect() renamed to Vector2.aspect() to keep consistent method naming

This commit is contained in:
Juan Linietsky
2017-01-13 20:00:43 -03:00
parent 00ec16e3f3
commit 6e88b1096a
6 changed files with 17 additions and 17 deletions

View File

@@ -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