summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r--src/gui/outfitwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index 809b99b37..f43f1ba54 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -313,8 +313,9 @@ void OutfitWindow::draw(gcn::Graphics *graphics)
for (unsigned int i = 0; i < OUTFIT_ITEM_COUNT; i++)
{
- const int itemX = 10 + ((i % mGridWidth) * mBoxWidth);
- const int itemY = 25 + ((i / mGridWidth) * mBoxHeight);
+ const int itemX = mPadding + ((i % mGridWidth) * mBoxWidth);
+ const int itemY = mPadding + getTitleBarHeight()
+ + ((i / mGridWidth) * mBoxHeight);
graphics->setColor(mBorderColor);
graphics->drawRectangle(gcn::Rectangle(itemX, itemY, 32, 32));