Don't check for larger window size if fullscreen is used

This commit is contained in:
Benau 2022-08-29 10:48:39 +08:00
parent d322720147
commit 3d9828b6e3

View File

@ -463,8 +463,9 @@ void IrrDriver::initDevice()
{
Log::warn("irr_driver", "Unknown desktop resolution.");
}
else if (UserConfigParams::m_real_width > (int)ssize.Width ||
UserConfigParams::m_real_height > (int)ssize.Height)
else if (!UserConfigParams::m_fullscreen &&
(UserConfigParams::m_real_width > (int)ssize.Width ||
UserConfigParams::m_real_height > (int)ssize.Height))
{
Log::warn("irr_driver", "The window size specified in "
"user config is larger than your screen!");