mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Changed: If Width and Height are invalid, use current screen mode
This commit is contained in:
parent
59b97a82ef
commit
4681dbec0c
1 changed files with 16 additions and 0 deletions
|
@ -953,6 +953,22 @@ void prelogInit()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ClientCfg.Width <= 0 || ClientCfg.Height <= 0)
|
||||||
|
{
|
||||||
|
UDriver::CMode mode;
|
||||||
|
|
||||||
|
if (!ClientCfg.Windowed && Driver->getCurrentScreenMode(mode))
|
||||||
|
{
|
||||||
|
ClientCfg.Width = mode.Width;
|
||||||
|
ClientCfg.Height = mode.Height;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ClientCfg.Width = 1024;
|
||||||
|
ClientCfg.Height = 768;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_VideoModeSetup, "login_step_video_mode_setup"));
|
CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_VideoModeSetup, "login_step_video_mode_setup"));
|
||||||
|
|
||||||
FPU_CHECKER_ONCE
|
FPU_CHECKER_ONCE
|
||||||
|
|
Loading…
Reference in a new issue