From 663eec5b6b98daa2649d966455a10a04d6e3d99b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Aug 2013 20:53:43 +0300 Subject: Fix default inventory and shop window size on big screens. --- src/gui/inventorywindow.cpp | 5 ++++- src/gui/shopwindow.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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); 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; -- cgit v1.2.3-70-g09d2