summaryrefslogtreecommitdiff
path: root/src/gui/widgets/emotepage.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/emotepage.cpp
parent29f929794c7519b049de0be3af635f05d7e83be6 (diff)
downloadmv-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.gz
mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.bz2
mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.tar.xz
mv-ca9fac131283ed536971799bef0d1fff4ef8adc1.zip
Remove useless graphics casts.
Diffstat (limited to 'src/gui/widgets/emotepage.cpp')
-rw-r--r--src/gui/widgets/emotepage.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/widgets/emotepage.cpp b/src/gui/widgets/emotepage.cpp
index 869ae5d08..6101c20ae 100644
--- a/src/gui/widgets/emotepage.cpp
+++ b/src/gui/widgets/emotepage.cpp
@@ -68,7 +68,6 @@ void EmotePage::draw(Graphics *graphics)
const std::vector<Image*> &images = mEmotes->getImages();
- Graphics *const g = static_cast<Graphics*>(graphics);
const unsigned int width = mDimension.width;
unsigned int x = 0;
unsigned int y = 0;
@@ -84,7 +83,7 @@ void EmotePage::draw(Graphics *graphics)
const Image *const image = *it;
if (image)
{
- g->calcTileCollection(mVertexes, image, x, y);
+ graphics->calcTileCollection(mVertexes, image, x, y);
x += emoteWidth;
if (x + emoteWidth > width)
{
@@ -94,7 +93,7 @@ void EmotePage::draw(Graphics *graphics)
}
}
}
- g->drawTileCollection(mVertexes);
+ graphics->drawTileCollection(mVertexes);
}
else
{
@@ -103,7 +102,7 @@ void EmotePage::draw(Graphics *graphics)
const Image *const image = *it;
if (image)
{
- g->drawImage2(image, x, y);
+ graphics->drawImage2(image, x, y);
x += emoteWidth;
if (x + emoteWidth > width)
{