Fixed: Ingame UI restored wrongly if window resized in char select mode
--HG-- branch : develop
This commit is contained in:
parent
2e7d025109
commit
ace1684f5c
1 changed files with 10 additions and 0 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue