mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
Fixed: restore correct fullscreen resolution
This commit is contained in:
parent
4fee35c5b3
commit
276f664e50
1 changed files with 6 additions and 1 deletions
|
@ -1943,16 +1943,21 @@ class CAHInitResLod : public IActionHandler
|
||||||
|
|
||||||
VideoModes.clear();
|
VideoModes.clear();
|
||||||
StringModeList.clear();
|
StringModeList.clear();
|
||||||
StringModeList.push_back("uiConfigWindowed");
|
|
||||||
|
|
||||||
CurrentMode = getRyzomModes(VideoModes, StringModeList);
|
CurrentMode = getRyzomModes(VideoModes, StringModeList);
|
||||||
|
|
||||||
|
// getRyzomModes() expects empty list, so we need to insert 'Windowed' after mode list is filled
|
||||||
|
StringModeList.insert(StringModeList.begin(), "uiConfigWindowed");
|
||||||
|
|
||||||
// If the client is in windowed mode, still in windowed mode and do not change anything
|
// If the client is in windowed mode, still in windowed mode and do not change anything
|
||||||
if (ClientCfg.Windowed)
|
if (ClientCfg.Windowed)
|
||||||
CurrentMode = 0;
|
CurrentMode = 0;
|
||||||
// If we have not found the mode so it can be an error or machine change, so propose the first available
|
// If we have not found the mode so it can be an error or machine change, so propose the first available
|
||||||
else if (CurrentMode == -1)
|
else if (CurrentMode == -1)
|
||||||
CurrentMode = 1;
|
CurrentMode = 1;
|
||||||
|
// We inserted 'Windowed' as first mode, so index needs to move too
|
||||||
|
else
|
||||||
|
++CurrentMode;
|
||||||
|
|
||||||
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||||
CViewText *pVT = dynamic_cast<CViewText*>(CWidgetManager::getInstance()->getElementFromId("ui:login:checkpass:content:res_value"));
|
CViewText *pVT = dynamic_cast<CViewText*>(CWidgetManager::getInstance()->getElementFromId("ui:login:checkpass:content:res_value"));
|
||||||
|
|
Loading…
Reference in a new issue