|
|
@ -1096,19 +1096,17 @@ void prelogInit()
|
|
|
|
|
|
|
|
|
|
|
|
UDriver::CMode mode;
|
|
|
|
UDriver::CMode mode;
|
|
|
|
|
|
|
|
|
|
|
|
bool forceWindowed1024x768 = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Driver->getCurrentScreenMode(mode))
|
|
|
|
if (Driver->getCurrentScreenMode(mode))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// if screen mode lower than 1024x768, use same mode in fullscreen
|
|
|
|
// use current mode if its smaller than 1024x768
|
|
|
|
if (mode.Width <= 1024 && mode.Height <= 768)
|
|
|
|
// mode should be windowed already, but incase its not, use the mode as is
|
|
|
|
|
|
|
|
if (mode.Windowed && (mode.Width > 1024 && mode.Height > 768))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mode.Windowed = false;
|
|
|
|
mode.Width = 1024;
|
|
|
|
forceWindowed1024x768 = false;
|
|
|
|
mode.Height = 768;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
if (forceWindowed1024x768)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mode.Width = 1024;
|
|
|
|
mode.Width = 1024;
|
|
|
|
mode.Height = 768;
|
|
|
|
mode.Height = 768;
|
|
|
|