diff options
Diffstat (limited to 'src/guichan/widgets/icon.cpp')
-rw-r--r-- | src/guichan/widgets/icon.cpp | 8 |
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); - } } } |