
Originally Posted by
[S]pirit
ZOptionInterface.cpp
Code:
if( ((float)ddm.Height / (float)ddm.Width != 0.75f) &&
((float)ddm.Height / (float)ddm.Width != 0.625f) &&
((float)ddm.Height / (float)ddm.Width != 0.6f))
continue;
Fix the rest yourself. Took me $0 and grep to find this shit.
LOL, i were blind.
Code:
for( int i=0;i<2;i++)
{
int nDM = RGetAdapterModeCount( format[i] );
mlog("Number of Display mode : %d\n", nDM );
for( int idm = 0 ; idm < nDM; ++idm )
{
if( REnumAdapterMode( D3DADAPTER_DEFAULT,format[i], idm, &ddm ))
{
if( ddm.Width < 640 || ddm.Height < 480 )
continue;
if( ((float)ddm.Height / (float)ddm.Width != 0.75f) &&
((float)ddm.Height / (float)ddm.Width != 0.625f) )
continue;
if( ddm.Width < 640 || ddm.Height < 480 )
continue;
ddm.RefreshRate = DEFAULT_REFRESHRATE;
if( ddm.Format == D3DFMT_X8R8G8B8 || ddm.Format == D3DFMT_R5G6B5 )
{
map<int, D3DDISPLAYMODE>::iterator iter_ = find_if( gDisplayMode.begin(), gDisplayMode.end(), value_equals<int, D3DDISPLAYMODE>(ddm));
if( iter_ == gDisplayMode.end() )
{
gDisplayMode.insert( map<int, D3DDISPLAYMODE>::value_type( dmIndex++, ddm ) );
sprintf( szBuf, "%d x %d %dbpp", ddm.Width, ddm.Height, ddm.Format==D3DFMT_X8R8G8B8?32:16 );
pWidget->Add(szBuf);
}
}
}
}
}