19 auto pAdapterList = pRenderer->GetAdapterList();
23 auto uiNumSupportedDevices = pAdapter->GetNumSupportedDevices();
24 auto pModeList = pAdapter->GetModeList();
28 for (
TUINT32 i = 0; i < uiNumSupportedDevices; i++ )
30 auto pDevice = pMode->GetDevice( i );
32 if ( !pDevice->IsSoftware() )
34 if ( !pDevice->GetMode()->Is32Bit() && !pDevice->GetMode()->Is16Bit() )
39 auto uiWidth = pDevice->GetMode()->GetWidth();
40 auto uiHeight = pDevice->GetMode()->GetHeight();
42 if ( uiWidth == ( uiHeight / 3 ) * 4 ||
43 uiHeight == ( uiWidth / 3 ) * 4 ||
44 uiWidth == ( uiHeight / 4 ) * 5 ||
45 uiWidth == ( uiHeight / 5 ) * 4 ||
46 uiWidth == ( uiHeight / 9 ) * 16 ||
47 uiWidth == ( uiHeight / 10 ) * 16 )
49 if ( ( 640 <= uiWidth && 480 <= uiHeight ) ||
50 ( 1280 <= uiWidth && 1024 <= uiHeight ) ||
51 ( 1024 <= uiWidth && 1280 <= uiHeight ) ||
52 ( 1280 <= uiWidth && 720 <= uiHeight ) ||
53 ( 1440 <= uiWidth && 900 <= uiHeight ) )
55 if ( pDevice->GetMode()->Is16Bit() )
59 m_Modes.PushBack( { .m_uiWidth = uiWidth, .m_uiHeight = uiHeight, .m_uiColourDepth = 16 } );
63 if ( pDevice->GetMode()->Is32Bit() )
67 m_Modes.PushBack( { .m_uiWidth = uiWidth, .m_uiHeight = uiHeight, .m_uiColourDepth = 32 } );