Fixed: Ingame UI restored wrongly if window resized in char select mode

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-10-11 21:51:00 +03:00
parent 2e7d025109
commit ace1684f5c

View file

@ -1241,6 +1241,16 @@ TInterfaceState globalMenu()
// Restore video mode
if (ClientCfg.SelectCharacter == -1)
{
if (ClientCfg.Windowed)
{
// if used changed window resolution in char select
// if we don't update ClientCfg, then UI from icfg is restored wrong
uint32 width, height;
Driver->getWindowSize(width, height);
ClientCfg.Width = width;
ClientCfg.Height = height;
}
connectionRestoreVideoMode ();
}