From a3c90b029308eb46b7fd83a0cf7b502ecbd79d55 Mon Sep 17 00:00:00 2001 From: alexholly Date: Sun, 4 Jun 2017 00:25:13 +0200 Subject: renamed all Rect2.pos to Rect2.position --- main/input_default.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/input_default.cpp') diff --git a/main/input_default.cpp b/main/input_default.cpp index 0ac97bf800..e488438059 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -493,10 +493,10 @@ Point2i InputDefault::warp_mouse_motion(const Ref &p_moti Math::fmod(p_motion->get_relative().x + rel_sgn.x * warp_margin.x, p_rect.size.x) - rel_sgn.x * warp_margin.x, Math::fmod(p_motion->get_relative().y + rel_sgn.y * warp_margin.y, p_rect.size.y) - rel_sgn.y * warp_margin.y); - const Point2i pos_local = p_motion->get_global_position() - p_rect.pos; + const Point2i pos_local = p_motion->get_global_position() - p_rect.position; const Point2i pos_warped(Math::fposmod(pos_local.x, p_rect.size.x), Math::fposmod(pos_local.y, p_rect.size.y)); if (pos_warped != pos_local) { - OS::get_singleton()->warp_mouse_pos(pos_warped + p_rect.pos); + OS::get_singleton()->warp_mouse_pos(pos_warped + p_rect.position); } return rel_warped; -- cgit v1.2.3