if (gameHeight == 600) // ALI
{
if (screenRatio >= 1777) // 1280x720, 1600 x 900, 1920x1080 (16:9)
{
supportedRes = gfxDriver->FindSupportedResolutionWidth(1280, 720, firstDepth, 110);
Out::FPrint("ALI: Attempt 1280 x 720. Supported = %d.", supportedRes);
if (supportedRes > 0)
{
Out::FPrint("Widescreen side borders: enabled, attempting resolution %d x %d", 1280, 720);
failed = init_gfx_mode(1280, 720, firstDepth);
}
else
{
Out::FPrint("Widescreen side borders: gfx card does not support suitable resolution: %d x %d", 1280, 720);
supportedRes = gfxDriver->FindSupportedResolutionWidth(1600, 900, firstDepth, 110);
Out::FPrint("ALI: Attempt 1600 x 900. Supported = %d.", supportedRes);
if (supportedRes > 0)
{
Out::FPrint("Widescreen side borders: enabled, attempting resolution %d x %d", 1600, 900);
failed = init_gfx_mode(1600, 900, firstDepth);
}
else
{
Out::FPrint("Widescreen side borders: gfx card does not support suitable resolution: %d x %d", 1600, 900);
supportedRes = gfxDriver->FindSupportedResolutionWidth(1920, 1080, firstDepth, 110);
Out::FPrint("ALI: Attempt 1920 x 1080. Supported = %d.", supportedRes);
if (supportedRes > 0)
{
Out::FPrint("Widescreen side borders: enabled, attempting resolution %d x %d", 1920, 1080);
failed = init_gfx_mode(1920,1080, firstDepth);
}
else
{
Out::FPrint("Widescreen side borders: gfx card does not support suitable resolution: %d x %d", 1920, 1080);
}
}
}
}
else if (screenRatio <= 1777) // 1360 x 768, 1280x768, 1440 x 900 (16:9)
{
supportedRes = gfxDriver->FindSupportedResolutionWidth(1360, 768, firstDepth, 110);
Out::FPrint("ALI: Attempt 1360 x 768. Supported = %d.", supportedRes);
if (supportedRes > 0)
{
Out::FPrint("Widescreen side borders: enabled, attempting resolution %d x %d", 1360, 768);
failed = init_gfx_mode(1360, 768, firstDepth);
}
else
{
Out::FPrint("Widescreen side borders: gfx card does not support suitable resolution: %d x %d", 1360, 768);
supportedRes = gfxDriver->FindSupportedResolutionWidth(1280, 768, firstDepth, 110);
Out::FPrint("ALI: Attempt 1280 x 768. Supported = %d.", supportedRes);
if (supportedRes > 0)
{
Out::FPrint("Widescreen side borders: enabled, attempting resolution %d x %d", 1280, 768);
failed = init_gfx_mode(1280, 768, firstDepth);
}
else
{
Out::FPrint("Widescreen side borders: gfx card does not support suitable resolution: %d x %d", 1280, 768);
supportedRes = gfxDriver->FindSupportedResolutionWidth(1440, 900, firstDepth, 110);
Out::FPrint("ALI: Attempt 1440 x 900. Supported = %d.", supportedRes);
if (supportedRes > 0)
{
Out::FPrint("Widescreen side borders: enabled, attempting resolution %d x %d", 1440, 900);
failed = init_gfx_mode(1440, 900, firstDepth);
}
else
{
Out::FPrint("Widescreen side borders: gfx card does not support suitable resolution: %d x %d", 1440, 900);
}
}
}
}
}