summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/icon.cpp
diff options
context:
space:
mode:
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);
- }
}
}