From 9c23f9fe8894ae429c3b1dff97e19ae471bea0bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jun 2013 21:33:24 +0300 Subject: improve progressindicator. --- src/gui/widgets/progressindicator.cpp | 4 ++-- 1 file 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), x, y); } BLOCK_END("ProgressIndicator::draw") -- cgit v1.2.3-60-g2f50