diff options
Diffstat (limited to 'src')
-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") |