diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-13 21:33:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-13 21:33:24 +0300 |
commit | 9c23f9fe8894ae429c3b1dff97e19ae471bea0bb (patch) | |
tree | a22349daaf4e88438b2d7ed64a009133062ec5c2 /src/gui/widgets | |
parent | fb2224a7a2c7f7a80d4a4a948ee7c202fe56afac (diff) | |
download | manaverse-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.tar.gz manaverse-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.tar.bz2 manaverse-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.tar.xz manaverse-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.zip |
improve progressindicator.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/progressindicator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/progressindicator.cpp b/src/gui/widgets/progressindicator.cpp index 6c58af2bf..d3d398c87 100644 --- a/src/gui/widgets/progressindicator.cpp +++ b/src/gui/widgets/progressindicator.cpp @@ -70,8 +70,8 @@ void ProgressIndicator::draw(gcn::Graphics *graphics) if (mIndicator) { // Draw the indicator centered on the widget - const int x = (getWidth() - 32) / 2; - const int y = (getHeight() - 32) / 2; + const int x = (mDimension.width - 32) / 2; + const int y = (mDimension.height - 32) / 2; mIndicator->draw(static_cast<Graphics*>(graphics), x, y); } BLOCK_END("ProgressIndicator::draw") |