From f3ae74243b5441f76680851d43d0e57575c54b11 Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Mon, 28 Mar 2011 02:56:22 +0200 Subject: [PATCH] Better alpha value and drawing order for heading. --- map/information_display.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/map/information_display.cpp b/map/information_display.cpp index c688208a5d..72c830a500 100644 --- a/map/information_display.cpp +++ b/map/information_display.cpp @@ -95,7 +95,7 @@ void InformationDisplay::drawPosition(DrawerYG * pDrawer) double pxErrorRadius = pxPosition.Length(m_screen.GtoP(m_position + m2::PointD(m_errorRadius, 0))); - pDrawer->screen()->drawArc(pxPosition, 0, math::pi * 2, pxErrorRadius, yg::Color(0, 0, 255, 64), yg::maxDepth - 2); + pDrawer->screen()->drawArc(pxPosition, 0, math::pi * 2, pxErrorRadius, yg::Color(0, 0, 255, 32), yg::maxDepth - 2); pDrawer->screen()->fillSector(pxPosition, 0, math::pi * 2, pxErrorRadius, yg::Color(0, 0, 255, 32), yg::maxDepth - 3); } @@ -126,13 +126,13 @@ void InformationDisplay::drawHeading(DrawerYG *pDrawer) trueHeadingRad + m_headingOrientation - headingAccuracyRad, trueHeadingRad + m_headingOrientation + headingAccuracyRad, pxErrorRadius, - yg::Color(255, 255, 255, 64), + yg::Color(255, 255, 255, 192), yg::maxDepth); pDrawer->screen()->fillSector(pxPosition, trueHeadingRad + m_headingOrientation - headingAccuracyRad, trueHeadingRad + m_headingOrientation + headingAccuracyRad, pxErrorRadius, - yg::Color(255, 255, 255, 32), + yg::Color(255, 255, 255, 96), yg::maxDepth - 1); /* /// magnetic heading double magneticHeadingRad = m_magneticHeading / 180 * math::pi; @@ -592,10 +592,10 @@ void InformationDisplay::drawBenchmarkInfo(DrawerYG * pDrawer) void InformationDisplay::doDraw(DrawerYG *drawer) { m_yOffset = 0; - if (m_isHeadingEnabled) - drawHeading(drawer); if (m_isPositionEnabled) drawPosition(drawer); + if (m_isHeadingEnabled) + drawHeading(drawer); if (m_isDebugPointsEnabled) drawDebugPoints(drawer); if (m_isRulerEnabled)