From ace1684f5c66a6318ad9bec17b661bb0fdb5e3f5 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 11 Oct 2018 21:51:00 +0300 Subject: [PATCH] Fixed: Ingame UI restored wrongly if window resized in char select mode --HG-- branch : develop --- code/ryzom/client/src/connection.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/ryzom/client/src/connection.cpp b/code/ryzom/client/src/connection.cpp index 7fd707354..ec9f3dee8 100644 --- a/code/ryzom/client/src/connection.cpp +++ b/code/ryzom/client/src/connection.cpp @@ -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 (); }