diff --git a/graphics/depth_constants.hpp b/graphics/depth_constants.hpp index ec09b9ad87..b11faa8140 100644 --- a/graphics/depth_constants.hpp +++ b/graphics/depth_constants.hpp @@ -7,17 +7,17 @@ namespace graphics static const int debugDepth = maxDepth; static const int benchmarkDepth = maxDepth; + static const int compassDepth = maxDepth; + static const int rulerDepth = maxDepth; + static const int countryStatusDepth = maxDepth - 10; + /// @todo 100 is a temporary solution fo iOS. /// Need to review logic of gui elements, glyphs and symbols caching /// (display_list_cache.dpp). Depth is hardcoded there. - static const int balloonContentInc = 100; - static const int balloonBaseDepth = maxDepth - balloonContentInc; + static const int balloonBaseDepth = countryStatusDepth - (balloonContentInc + 10); - static const int compassDepth = balloonBaseDepth - 10; - static const int rulerDepth = compassDepth; - static const int locationDepth = rulerDepth - 10; + static const int locationDepth = balloonBaseDepth - 10; static const int poiAndBookmarkDepth = locationDepth - 10; static const int tracksDepth = poiAndBookmarkDepth - 10; - static const int countryStatusDepth = poiAndBookmarkDepth - 10; }