Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-06-06 21:29:56 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:57:12 +0300
commit593cb1723b6f9570acaf1a9bf5cd6786176f933d (patch)
tree276f6972135c55420b54bfcdc0959f1eaad87b23 /map/country_status_display.cpp
parentf61cb071ffef709dbbf4dccb22c45216c5f14d53 (diff)
Factor out and order all GUI-element depth constants in one place.
Diffstat (limited to 'map/country_status_display.cpp')
-rw-r--r--map/country_status_display.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/map/country_status_display.cpp b/map/country_status_display.cpp
index 11ebc5d636..9feb916eab 100644
--- a/map/country_status_display.cpp
+++ b/map/country_status_display.cpp
@@ -153,7 +153,7 @@ CountryStatusDisplay::CountryStatusDisplay(Params const & p)
gui::Button::Params bp;
- bp.m_depth = graphics::maxDepth - 10;
+ bp.m_depth = depth();
bp.m_minWidth = 200;
bp.m_minHeight = 40;
bp.m_pivot = m2::PointD(0, 0);
@@ -172,7 +172,7 @@ CountryStatusDisplay::CountryStatusDisplay(Params const & p)
m_downloadButton->setColor(EPressed, graphics::Color(graphics::Color(0, 0, 0, 0.4 * 255)));
gui::TextView::Params tp;
- tp.m_depth = graphics::maxDepth - 10;
+ tp.m_depth = depth();
tp.m_pivot = m2::PointD(0, 0);
tp.m_text = "Downloading";
@@ -259,8 +259,6 @@ void CountryStatusDisplay::draw(graphics::OverlayRenderer *r,
checkDirtyLayout();
- //r->drawRectangle(roughBoundRect(), graphics::Color(0, 0, 255, 64), graphics::maxDepth);
-
if (m_downloadButton->isVisible())
m_downloadButton->draw(r, m);
if (m_statusMsg->isVisible())