summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/icon.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-06 18:03:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-06 20:52:08 +0300
commitf0ae9007f666580259ca8c120f7aaee58a63f85a (patch)
treefebc9da1d2ee1a5d3f85096727cd8c26d036ea5e /src/guichan/widgets/icon.cpp
parentf7c9165e0f59a33404a486c0b154a2c21ed9a9fa (diff)
downloadplus-f0ae9007f666580259ca8c120f7aaee58a63f85a.tar.gz
plus-f0ae9007f666580259ca8c120f7aaee58a63f85a.tar.bz2
plus-f0ae9007f666580259ca8c120f7aaee58a63f85a.tar.xz
plus-f0ae9007f666580259ca8c120f7aaee58a63f85a.zip
Fix code style.
Diffstat (limited to 'src/guichan/widgets/icon.cpp')
-rw-r--r--src/guichan/widgets/icon.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/guichan/widgets/icon.cpp b/src/guichan/widgets/icon.cpp
index dca3400ba..d3d4d65ff 100644
--- a/src/guichan/widgets/icon.cpp
+++ b/src/guichan/widgets/icon.cpp
@@ -106,13 +106,7 @@ namespace gcn
return mImage;
}
- void Icon::draw(Graphics* graphics)
+ void Icon::draw(Graphics* graphics A_UNUSED)
{
- if (mImage)
- {
- const int x = (getWidth() - mImage->getWidth()) / 2;
- const int y = (getHeight() - mImage->getHeight()) / 2;
- graphics->drawImage(mImage, x, y);
- }
}
}