mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 10:21:09 +00:00
Fix updating of character preview size in InventoryWindow::setGuiMode
This commit is contained in:
parent
ac366f1603
commit
8fb328ef4f
@ -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…
x
Reference in New Issue
Block a user