mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
Fix adjustment of inventory preview size when guimode changes (Fixes #2973)
This commit is contained in:
parent
515c52211e
commit
944e6d0844
@ -167,11 +167,12 @@ namespace MWGui
|
|||||||
MyGUI::IntSize size(static_cast<int>(Settings::Manager::getFloat(setting + " w", "Windows") * viewSize.width),
|
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));
|
static_cast<int>(Settings::Manager::getFloat(setting + " h", "Windows") * viewSize.height));
|
||||||
|
|
||||||
|
mMainWidget->setPosition(pos);
|
||||||
|
mMainWidget->setSize(size);
|
||||||
|
|
||||||
if (size.width != mMainWidget->getWidth() || size.height != mMainWidget->getHeight())
|
if (size.width != mMainWidget->getWidth() || size.height != mMainWidget->getHeight())
|
||||||
updatePreviewSize();
|
updatePreviewSize();
|
||||||
|
|
||||||
mMainWidget->setPosition(pos);
|
|
||||||
mMainWidget->setSize(size);
|
|
||||||
adjustPanes();
|
adjustPanes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user