Fixed: Don't force 1024x768 windowed if desktop resolution is already 1024x768 or less
--HG-- branch : develop
This commit is contained in:
parent
33e701192d
commit
47bc397a30
1 changed files with 19 additions and 4 deletions
|
@ -990,11 +990,26 @@ void prelogInit()
|
||||||
// Check the driver is not is 16 bits
|
// Check the driver is not is 16 bits
|
||||||
checkDriverDepth ();
|
checkDriverDepth ();
|
||||||
|
|
||||||
// For login phase, MUST be in windowed
|
|
||||||
UDriver::CMode mode;
|
UDriver::CMode mode;
|
||||||
|
|
||||||
|
bool forceWindowed1024x768 = true;
|
||||||
|
|
||||||
|
if (Driver->getCurrentScreenMode(mode))
|
||||||
|
{
|
||||||
|
// if screen mode lower than 1024x768, use same mode in fullscreen
|
||||||
|
if (mode.Width <= 1024 && mode.Height <= 768)
|
||||||
|
{
|
||||||
|
mode.Windowed = false;
|
||||||
|
forceWindowed1024x768 = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (forceWindowed1024x768)
|
||||||
|
{
|
||||||
mode.Width = 1024;
|
mode.Width = 1024;
|
||||||
mode.Height = 768;
|
mode.Height = 768;
|
||||||
mode.Windowed = true;
|
mode.Windowed = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Disable Hardware Vertex Program.
|
// Disable Hardware Vertex Program.
|
||||||
if(ClientCfg.DisableVtxProgram)
|
if(ClientCfg.DisableVtxProgram)
|
||||||
|
|
Loading…
Reference in a new issue