Browse Source

Fix clicks on retina display (#2678)

Katekov Anton 5 years ago
parent
commit
6abd71cc15
1 changed files with 0 additions and 3 deletions
  1. 0 3
      Source/Urho3D/UI/UI.cpp

+ 0 - 3
Source/Urho3D/UI/UI.cpp

@@ -1321,9 +1321,6 @@ void UI::GetCursorPositionAndVisible(IntVector2& pos, bool& visible)
         if (!visible && cursor_)
         if (!visible && cursor_)
             pos = cursor_->GetPosition();
             pos = cursor_->GetPosition();
     }
     }
-
-    pos.x_ = (int)(pos.x_ / uiScale_);
-    pos.y_ = (int)(pos.y_ / uiScale_);
 }
 }
 
 
 void UI::SetCursorShape(CursorShape shape)
 void UI::SetCursorShape(CursorShape shape)