diff options
Diffstat (limited to 'src/gui/button.cpp')
-rw-r--r-- | src/gui/button.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp index 680a9152..b2468036 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -112,10 +112,7 @@ void Button::draw(gcn::Graphics* graphics) mode = 0; } - int x, y; - getAbsolutePosition(x, y); - - dynamic_cast<Graphics*>(graphics)->drawImageRect(x, y, getWidth(), getHeight(), + dynamic_cast<Graphics*>(graphics)->drawImageRect(0, 0, getWidth(), getHeight(), button[mode]); graphics->setColor(getForegroundColor()); |