mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Fixed: remember selected resolution in login screen (issue #36)
--HG-- branch : fix-issue-36
This commit is contained in:
parent
f8f25e8579
commit
4b86f979a8
1 changed files with 10 additions and 1 deletions
|
@ -2111,7 +2111,12 @@ class CAHUninitResLod : public IActionHandler
|
|||
//nlinfo("CAHUninitResLod called");
|
||||
|
||||
// If the mode requested is a windowed mode do nothnig
|
||||
if (CurrentMode != 0)
|
||||
if (CurrentMode == 0)
|
||||
{
|
||||
ClientCfg.Windowed = true;
|
||||
ClientCfg.writeBool("FullScreen", false);
|
||||
}
|
||||
else
|
||||
{
|
||||
ClientCfg.Windowed = false;
|
||||
// Get W, H
|
||||
|
@ -2125,6 +2130,10 @@ class CAHUninitResLod : public IActionHandler
|
|||
}
|
||||
ClientCfg.Width = w;
|
||||
ClientCfg.Height = h;
|
||||
|
||||
ClientCfg.writeBool("FullScreen", true);
|
||||
ClientCfg.writeInt("Width", w);
|
||||
ClientCfg.writeInt("Height", h);
|
||||
}
|
||||
|
||||
if (CurrentPreset != 4) // CInterfaceDDX::CustomPreset
|
||||
|
|
Loading…
Reference in a new issue