summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.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/playerbox.cpp
parent29f929794c7519b049de0be3af635f05d7e83be6 (diff)
downloadmanaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.gz
manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.bz2
manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.xz
manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.zip
Remove useless graphics casts.
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index 260f80099..0639fe1b0 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -115,7 +115,7 @@ void PlayerBox::draw(Graphics *graphics)
const int bs = mFrameSize;
const int x = mDimension.width / 2 + bs + mOffsetX;
const int y = mDimension.height - bs + mOffsetY;
- mBeing->drawSpriteAt(static_cast<Graphics*>(graphics), x, y);
+ mBeing->drawSpriteAt(graphics, x, y);
}
if (client->getGuiAlpha() != mAlpha)
@@ -140,15 +140,9 @@ void PlayerBox::drawFrame(Graphics *graphics)
const int h = mDimension.height + bs;
if (!mSelected)
- {
- static_cast<Graphics*>(graphics)->drawImageRect(
- 0, 0, w, h, mBackground);
- }
+ graphics->drawImageRect(0, 0, w, h, mBackground);
else
- {
- static_cast<Graphics*>(graphics)->drawImageRect(
- 0, 0, w, h, mSelectedBackground);
- }
+ graphics->drawImageRect(0, 0, w, h, mSelectedBackground);
}
BLOCK_END("PlayerBox::drawFrame")
}