diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-01 23:13:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-02 00:55:47 +0300 |
commit | 209fdbeaf69176fdab23604e820a73103e66776d (patch) | |
tree | 70cb2c329035dcca2024c632b17620e823d50076 /src/gui/outfitwindow.cpp | |
parent | 721e1aa49134fb55241728528256b8662a5bb160 (diff) | |
download | manaplus-209fdbeaf69176fdab23604e820a73103e66776d.tar.gz manaplus-209fdbeaf69176fdab23604e820a73103e66776d.tar.bz2 manaplus-209fdbeaf69176fdab23604e820a73103e66776d.tar.xz manaplus-209fdbeaf69176fdab23604e820a73103e66776d.zip |
Fix tilebar padding with different font sizes.
Fix paddings in outfits window.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r-- | src/gui/outfitwindow.cpp | 5 |
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)); |