Fixed: Frequency checks useless because it can be 0 or a wrong value, 16 bits depth requirement

This commit is contained in:
kervala 2015-12-25 15:26:32 +01:00
parent 328ad17bc4
commit 0b24fa4dd4

View file

@ -162,7 +162,7 @@ void CSystem::GetVideoModes( std::vector< CVideoMode > &dst, NL3D::IDriver *driv
for( std::vector< NL3D::GfxMode >::iterator itr = modes.begin(); itr != modes.end(); ++itr )
{
if( ( itr->Width >= 800 ) && ( itr->Height >= 600 ) && ( itr->Depth == 32 ) && ( itr->Frequency >= 60 ) )
if( ( itr->Width >= 800 ) && ( itr->Height >= 600 ) && ( itr->Depth >= 16 ) )
{
CVideoMode mode;
mode.depth = itr->Depth;