summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-13 21:33:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-13 21:33:24 +0300
commit9c23f9fe8894ae429c3b1dff97e19ae471bea0bb (patch)
treea22349daaf4e88438b2d7ed64a009133062ec5c2 /src/gui
parentfb2224a7a2c7f7a80d4a4a948ee7c202fe56afac (diff)
downloadmv-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.tar.gz
mv-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.tar.bz2
mv-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.tar.xz
mv-9c23f9fe8894ae429c3b1dff97e19ae471bea0bb.zip
improve progressindicator.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/progressindicator.cpp4
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")