summaryrefslogtreecommitdiff
path: root/src/gui/widgets/checkbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-15 22:21:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-15 22:21:02 +0300
commitca9fac131283ed536971799bef0d1fff4ef8adc1 (patch)
treeec70584d20b117c5d2446ef42b898eeacdda9d12 /src/gui/widgets/checkbox.cpp
parent29f929794c7519b049de0be3af635f05d7e83be6 (diff)
downloadManaVerse-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.gz
ManaVerse-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.bz2
ManaVerse-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.xz
ManaVerse-ca9fac131283ed536971799bef0d1fff4ef8adc1.zip
Remove useless graphics casts.
Diffstat (limited to 'src/gui/widgets/checkbox.cpp')
-rw-r--r--src/gui/widgets/checkbox.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp
index e72296516..2f11dc2ce 100644
--- a/src/gui/widgets/checkbox.cpp
+++ b/src/gui/widgets/checkbox.cpp
@@ -100,9 +100,7 @@ void CheckBox::draw(Graphics *const graphics)
drawBox(graphics);
gcn::Font *const font = getFont();
- static_cast<Graphics *const>(graphics)->setColorAll(
- mForegroundColor, mForegroundColor2);
-
+ graphics->setColorAll(mForegroundColor, mForegroundColor2);
font->drawString(graphics, mCaption, mPadding + mImageSize + mSpacing,
mPadding);
BLOCK_END("CheckBox::draw")
@@ -167,8 +165,9 @@ void CheckBox::drawBox(Graphics *const graphics)
if (box)
{
- static_cast<Graphics*>(graphics)->drawImage2(
- box, mImagePadding, (getHeight() - mImageSize) / 2);
+ graphics->drawImage2(box,
+ mImagePadding,
+ (getHeight() - mImageSize) / 2);
}
}