|
|
@ -160,6 +160,16 @@ void CSystem::GetVideoModes( std::vector< CVideoMode > &dst, NL3D::IDriver *driv
|
|
|
|
std::vector< NL3D::GfxMode > modes;
|
|
|
|
std::vector< NL3D::GfxMode > modes;
|
|
|
|
driver->getModes( modes );
|
|
|
|
driver->getModes( modes );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// auto mode
|
|
|
|
|
|
|
|
CVideoMode mode;
|
|
|
|
|
|
|
|
mode.depth = 0;
|
|
|
|
|
|
|
|
mode.width = 0;
|
|
|
|
|
|
|
|
mode.height = 0;
|
|
|
|
|
|
|
|
mode.frequency = 0;
|
|
|
|
|
|
|
|
dst.push_back( mode );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for( std::vector< NL3D::GfxMode >::iterator itr = modes.begin(); itr != modes.end(); ++itr )
|
|
|
|
for( std::vector< NL3D::GfxMode >::iterator itr = modes.begin(); itr != modes.end(); ++itr )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( ( itr->Width >= 800 ) && ( itr->Height >= 600 ) && ( itr->Depth >= 16 ) )
|
|
|
|
if( ( itr->Width >= 800 ) && ( itr->Height >= 600 ) && ( itr->Depth >= 16 ) )
|
|
|
|