summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
commit30ba8a737da8b1811397786106085f2c13167803 (patch)
tree09e52b2fcb8ac35d3de76781de7508dc6a9c9278 /src/gui/windows/equipmentwindow.cpp
parent03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (diff)
downloadmv-30ba8a737da8b1811397786106085f2c13167803.tar.gz
mv-30ba8a737da8b1811397786106085f2c13167803.tar.bz2
mv-30ba8a737da8b1811397786106085f2c13167803.tar.xz
mv-30ba8a737da8b1811397786106085f2c13167803.zip
Remove default parameters from window.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index c62696704..7e7228b0a 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -84,8 +84,8 @@ EquipmentWindow::EquipmentWindow(Equipment *const equipment,
mLabelsColor(getThemeColor(ThemeColorId::LABEL, 255U)),
mLabelsColor2(getThemeColor(ThemeColorId::LABEL_OUTLINE, 255U)),
mSelected(-1),
- mItemPadding(getOption("itemPadding")),
- mBoxSize(getOption("boxSize")),
+ mItemPadding(getOption("itemPadding", 0)),
+ mBoxSize(getOption("boxSize", 0)),
mButtonPadding(getOption("buttonPadding", 5)),
mMinX(180),
mMinY(345),
@@ -830,7 +830,7 @@ void EquipmentWindow::recalcSize()
mMaxY += mMinY;
mTabs->setWidth(mMaxX);
mMaxY += mUnequip->getHeight() - mYPadding;
- setDefaultSize(mMaxX, mMaxY, ImagePosition::CENTER);
+ setDefaultSize(mMaxX, mMaxY, ImagePosition::CENTER, 0, 0);
}
int EquipmentWindow::addPage(const std::string &name)