forked from organicmaps/organicmaps
[core] correct metric for hide compass
This commit is contained in:
parent
b95ebf1da3
commit
a0391590b2
1 changed files with 2 additions and 1 deletions
|
@ -670,7 +670,8 @@ void Framework::DrawAdditionalInfo(shared_ptr<PaintEvent> const & e)
|
|||
m_informationDisplay.setEmptyCountryIndex(GetCountryIndex(GetViewportCenter()));
|
||||
|
||||
m_informationDisplay.enableCountryStatusDisplay(isEmptyModel);
|
||||
bool const isCompassEnabled = ang::AngleIn2PI(m_navigator.Screen().GetAngle()) > my::DegToRad(3.0);
|
||||
|
||||
bool const isCompassEnabled = my::Abs(ang::GetShortestDistance(m_navigator.Screen().GetAngle(), 0.0)) > my::DegToRad(3.0);
|
||||
bool const isCompasActionEnabled = m_informationDisplay.isCompassArrowEnabled() && m_navigator.InAction();
|
||||
bool const isInRouting = IsRountingActive();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue