diff options
Diffstat (limited to 'src/gui/widgets/progressindicator.cpp')
-rw-r--r-- | src/gui/widgets/progressindicator.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/widgets/progressindicator.cpp b/src/gui/widgets/progressindicator.cpp index a3df73b8a..cdbbc7335 100644 --- a/src/gui/widgets/progressindicator.cpp +++ b/src/gui/widgets/progressindicator.cpp @@ -82,5 +82,13 @@ void ProgressIndicator::draw(Graphics *graphics) void ProgressIndicator::safeDraw(Graphics *graphics) { - ProgressIndicator::draw(graphics); + BLOCK_START("ProgressIndicator::draw") + if (mIndicator) + { + // Draw the indicator centered on the widget + const int x = (mDimension.width - 32) / 2; + const int y = (mDimension.height - 32) / 2; + mIndicator->draw(graphics, x, y); + } + BLOCK_END("ProgressIndicator::draw") } |