From 7a95d15bef8702f708c97bc76666727ce49001ec Mon Sep 17 00:00:00 2001 From: Harry Bond Date: Wed, 27 Aug 2025 09:51:04 +0100 Subject: [PATCH] [Drape] Adjust compass hidden angle to match removed screen angle snapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The screen snapping was removed a while ago (https://github.com/organicmaps/organicmaps/pull/8838) but the compass is still hidden within 5° of north. This adjusts the angle to 0.1 degrees off north, which should be enough. fixes #1097 Signed-off-by: Harry Bond --- libs/drape_frontend/gui/compass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/drape_frontend/gui/compass.cpp b/libs/drape_frontend/gui/compass.cpp index 68e9f44ac..7e14afe3d 100644 --- a/libs/drape_frontend/gui/compass.cpp +++ b/libs/drape_frontend/gui/compass.cpp @@ -48,8 +48,9 @@ public: bool Update(ScreenBase const & screen) override { - static double const kVisibleStartAngle = math::DegToRad(5.0); - static double const kVisibleEndAngle = math::DegToRad(355.0); + static double const kVisibleTolerance = 0.1; + static double const kVisibleStartAngle = math::DegToRad(0.0 + kVisibleTolerance); + static double const kVisibleEndAngle = math::DegToRad(360.0 - kVisibleTolerance); auto const angle = static_cast(ang::AngleIn2PI(screen.GetAngle()));