diff --git a/graphics/depth_constants.hpp b/graphics/depth_constants.hpp index 609fd957c6..d1adf27e0c 100644 --- a/graphics/depth_constants.hpp +++ b/graphics/depth_constants.hpp @@ -20,6 +20,7 @@ namespace graphics static const int locationDepth = balloonBaseDepth - 10; static const int poiDepth = locationDepth - 10; static const int bookmarkDepth = poiDepth; - static const int tracksDepth = bookmarkDepth - 10; + static const int tracksDepth = bookmarkDepth - balloonContentInc; + static const int tracksOutlineDepth = tracksDepth - 10; static const int activePinDepth = tracksDepth - 10; } diff --git a/map/track.cpp b/map/track.cpp index 34d54fbab8..192ed9fa35 100644 --- a/map/track.cpp +++ b/map/track.cpp @@ -81,7 +81,7 @@ void Track::CreateDisplayList(graphics::Screen * dlScreen, MatrixT const & matri { graphics::Pen::Info const outlineInfo(m_outlineColor, m_width + 2 * m_outlineWidth); uint32_t const outlineId = dlScreen->mapInfo(outlineInfo); - dlScreen->drawPath(pts2.data(), pts2.size(), 0, outlineId, graphics::tracksDepth); + dlScreen->drawPath(pts2.data(), pts2.size(), 0, outlineId, graphics::tracksOutlineDepth); } dlScreen->drawPath(pts2.data(), pts2.size(), 0, resId, graphics::tracksDepth);