forked from teamnwah/openmw-tes3coop
Fix updating of character preview size in InventoryWindow::setGuiMode
This commit is contained in:
parent
ac366f1603
commit
8fb328ef4f
1 changed files with 5 additions and 3 deletions
|
@ -167,13 +167,15 @@ namespace MWGui
|
|||
MyGUI::IntSize size(static_cast<int>(Settings::Manager::getFloat(setting + " w", "Windows") * viewSize.width),
|
||||
static_cast<int>(Settings::Manager::getFloat(setting + " h", "Windows") * viewSize.height));
|
||||
|
||||
bool needUpdate = (size.width != mMainWidget->getWidth() || size.height != mMainWidget->getHeight());
|
||||
|
||||
mMainWidget->setPosition(pos);
|
||||
mMainWidget->setSize(size);
|
||||
|
||||
if (size.width != mMainWidget->getWidth() || size.height != mMainWidget->getHeight())
|
||||
updatePreviewSize();
|
||||
|
||||
adjustPanes();
|
||||
|
||||
if (needUpdate)
|
||||
updatePreviewSize();
|
||||
}
|
||||
|
||||
SortFilterItemModel* InventoryWindow::getSortFilterModel()
|
||||
|
|
Loading…
Reference in a new issue