diff options
Diffstat (limited to 'map/compass_arrow.cpp')
-rw-r--r-- | map/compass_arrow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/map/compass_arrow.cpp b/map/compass_arrow.cpp index 9251e869b9..573b55e64c 100644 --- a/map/compass_arrow.cpp +++ b/map/compass_arrow.cpp @@ -162,8 +162,13 @@ unsigned CompassArrow::GetArrowHeight() const return m_arrowHeight; } +bool CompassArrow::roughHitTest(m2::PointD const & pt) const +{ + return hitTest(pt); +} + bool CompassArrow::hitTest(m2::PointD const & pt) const { - double rad = max(m_arrowWidth / 2, m_arrowHeight / 2); + double rad = 1.5 * max(m_arrowWidth / 2, m_arrowHeight / 2); return pt.Length(pivot()) < rad * visualScale(); } |