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/text.cpp | |
parent | 29f929794c7519b049de0be3af635f05d7e83be6 (diff) | |
download | manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.gz manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.bz2 manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.xz manaplus-ca9fac131283ed536971799bef0d1fff4ef8adc1.zip |
Remove useless graphics casts.
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/text.cpp b/src/text.cpp index a1ffea08c..943d31f67 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -137,9 +137,11 @@ void Text::draw(Graphics *const graphics, const int xOff, const int yOff) BLOCK_START("Text::draw") if (mIsSpeech) { - static_cast<Graphics*>(graphics)->drawImageRect( - mX - xOff - 5, mY - yOff - 5, mWidth + 10, mHeight + 10, - mBubble); + graphics->drawImageRect(mX - xOff - 5, + mY - yOff - 5, + mWidth + 10, + mHeight + 10, + mBubble); } graphics->setColor(*mColor); |