diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 20:43:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 21:33:18 +0300 |
commit | bea613d8ba11a64ccf36a01735f2839894ca9476 (patch) | |
tree | 8d5de8bf983f13aec50b3f1234db09b88dff26d3 /src/gui/widgets/progressindicator.cpp | |
parent | 80b0caa35e4b84b745daef7e4102b428539cdee5 (diff) | |
download | plus-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.gz plus-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.bz2 plus-bea613d8ba11a64ccf36a01735f2839894ca9476.tar.xz plus-bea613d8ba11a64ccf36a01735f2839894ca9476.zip |
Fix some issues in safe OpenGL renderer after last changes.
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") } |