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/browserbox.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/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index e0fbf3d17..024dde9c8 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -453,7 +453,6 @@ void BrowserBox::draw(Graphics *graphics) const gcn::ClipRectangle *const cr = graphics->getCurrentClipArea(); if (!cr) return; - Graphics *const graphics2 = static_cast<Graphics *const>(graphics); mYStart = cr->y - cr->yOffset; const int yEnd = mYStart + cr->height; if (mYStart < 0) @@ -503,7 +502,7 @@ void BrowserBox::draw(Graphics *graphics) break; if (!part.mType) { - graphics2->setColorAll(part.mColor, part.mColor2); + graphics->setColorAll(part.mColor, part.mColor2); if (part.mBold) boldFont->drawString(graphics, part.mText, part.mX, part.mY); else @@ -511,7 +510,7 @@ void BrowserBox::draw(Graphics *graphics) } else if (part.mImage) { - graphics2->drawImage2(part.mImage, part.mX, part.mY); + graphics->drawImage2(part.mImage, part.mX, part.mY); } } |