summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.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/shopwindow.cpp
parent9a0b02fc1a958881bcf073ba7f7761be529edbce (diff)
downloadplus-663eec5b6b98daa2649d966455a10a04d6e3d99b.tar.gz
plus-663eec5b6b98daa2649d966455a10a04d6e3d99b.tar.bz2
plus-663eec5b6b98daa2649d966455a10a04d6e3d99b.tar.xz
plus-663eec5b6b98daa2649d966455a10a04d6e3d99b.zip
Fix default inventory and shop window size on big screens.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r--src/gui/shopwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp
index 0f14d8ad5..db360fd33 100644
--- a/src/gui/shopwindow.cpp
+++ b/src/gui/shopwindow.cpp
@@ -125,7 +125,10 @@ ShopWindow::ShopWindow():
setStickyButtonLock(true);
setMinWidth(260);
setMinHeight(220);
- setDefaultSize(380, 300, ImageRect::CENTER);
+ if (mainGraphics->mWidth > 600)
+ setDefaultSize(500, 300, ImageRect::CENTER);
+ else
+ setDefaultSize(380, 300, ImageRect::CENTER);
mAnnounceCounter[BUY] = 0;
mAnnounceCounter[SELL] = 0;