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
path: root/gui
diff options
context:
space:
mode:
authorDarafei Praliaskouski <komzpa@gmail.com>2013-01-22 19:03:05 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:49:05 +0300
commit0eec5d802a61173c5baf4e3a008f0280de6343a7 (patch)
tree377e97d3a707efb2d671d669a8bbc770a028edb9 /gui
parentb0e7e0ce61aaf6ae2df778f362efc3e1101f8f3e (diff)
improved drawing priorities
Diffstat (limited to 'gui')
-rw-r--r--gui/element.cpp2
-rw-r--r--gui/element.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/element.cpp b/gui/element.cpp
index 7e5f76a358..af5f84d2a1 100644
--- a/gui/element.cpp
+++ b/gui/element.cpp
@@ -92,7 +92,7 @@ namespace gui
r->drawRectangle(boundRects()[i], color(state()), depth());
}
- int Element::priority() const
+ double Element::priority() const
{
return 0;
}
diff --git a/gui/element.hpp b/gui/element.hpp
index b87457e1e3..6af61b472f 100644
--- a/gui/element.hpp
+++ b/gui/element.hpp
@@ -69,7 +69,7 @@ namespace gui
graphics::OverlayElement * clone(math::Matrix<double, 3, 3> const & m) const;
void draw(graphics::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const;
- int priority() const;
+ double priority() const;
virtual void cache();
/// this method is called upon renderPolicy destruction and should clean