summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-20 20:53:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-20 20:53:43 +0300
commit663eec5b6b98daa2649d966455a10a04d6e3d99b (patch)
tree890d7eea8ab434cacea3ae17964890b037eb4147 /src/gui/inventorywindow.cpp
parent9a0b02fc1a958881bcf073ba7f7761be529edbce (diff)
downloadmanaverse-663eec5b6b98daa2649d966455a10a04d6e3d99b.tar.gz
manaverse-663eec5b6b98daa2649d966455a10a04d6e3d99b.tar.bz2
manaverse-663eec5b6b98daa2649d966455a10a04d6e3d99b.tar.xz
manaverse-663eec5b6b98daa2649d966455a10a04d6e3d99b.zip
Fix default inventory and shop window size on big screens.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index f5243a09b..86704c09c 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -150,7 +150,10 @@ InventoryWindow::InventoryWindow(Inventory *const inventory):
setSaveVisible(true);
setStickyButtonLock(true);
- setDefaultSize(387, 307, ImageRect::CENTER);
+ if (mainGraphics->mWidth > 600)
+ setDefaultSize(450, 310, ImageRect::CENTER);
+ else
+ setDefaultSize(387, 307, ImageRect::CENTER);
setMinWidth(310);
setMinHeight(179);
addKeyListener(this);