forked from mirror/openmw-tes3mp
Slight performance improvement for WindowManager::updateVisible
This commit is contained in:
parent
b6bad969a0
commit
31c1f484ed
1 changed files with 4 additions and 1 deletions
|
@ -120,10 +120,13 @@ namespace MWGui
|
|||
Settings::Manager::getFloat(setting + " y", "Windows") * viewSize.height);
|
||||
MyGUI::IntSize size (Settings::Manager::getFloat(setting + " w", "Windows") * viewSize.width,
|
||||
Settings::Manager::getFloat(setting + " h", "Windows") * viewSize.height);
|
||||
|
||||
if (size.width != mMainWidget->getWidth() || size.height != mMainWidget->getHeight())
|
||||
mPreviewDirty = true;
|
||||
|
||||
mMainWidget->setPosition(pos);
|
||||
mMainWidget->setSize(size);
|
||||
adjustPanes();
|
||||
mPreviewDirty = true;
|
||||
}
|
||||
|
||||
TradeItemModel* InventoryWindow::getTradeModel()
|
||||
|
|
Loading…
Reference in a new issue