summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/button.cpp')
-rw-r--r--src/gui/widgets/button.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index 91c531f6b..f0534c129 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -485,12 +485,13 @@ void Button::draw(gcn::Graphics *graphics)
{
if (isPressed())
{
- g2->calcTile(mVertexes2, mImages[mode],
+ g2->calcTileCollection(mVertexes2, mImages[mode],
imageX + 1, imageY + 1);
}
else
{
- g2->calcTile(mVertexes2, mImages[mode], imageX, imageY);
+ g2->calcTileCollection(mVertexes2,
+ mImages[mode], imageX, imageY);
}
}
}