diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-15 22:21:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-15 22:21:02 +0300 |
commit | ca9fac131283ed536971799bef0d1fff4ef8adc1 (patch) | |
tree | ec70584d20b117c5d2446ef42b898eeacdda9d12 /src/gui/widgets/icon.cpp | |
parent | 29f929794c7519b049de0be3af635f05d7e83be6 (diff) | |
download | mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.gz mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.bz2 mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.xz mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.zip |
Remove useless graphics casts.
Diffstat (limited to 'src/gui/widgets/icon.cpp')
-rw-r--r-- | src/gui/widgets/icon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/icon.cpp b/src/gui/widgets/icon.cpp index e9b7cd525..66313d397 100644 --- a/src/gui/widgets/icon.cpp +++ b/src/gui/widgets/icon.cpp @@ -67,12 +67,11 @@ void Icon::setImage(Image *const image) } } -void Icon::draw(Graphics *g) +void Icon::draw(Graphics *graphics) { BLOCK_START("Icon::draw") if (mImage) { - Graphics *const graphics = static_cast<Graphics*>(g); graphics->drawImage2(mImage, (mDimension.width - mImage->mBounds.w) / 2, (mDimension.height - mImage->mBounds.h) / 2); |