|
|
发表于 2004-5-16 21:27:00
|
显示全部楼层
Re: 如何编程判断显卡16位色到底是555还是565格式呢?
UINT x;
D3DDISPLAYMODE d3ddm;
UINT Y=m_pD3d->GetAdapterModeCount(0);
for(x = 0; x <Y; x++)
{
m_pD3d->EnumAdapterModes(0, x, &d3ddm);
if((d3ddm.Format == D3DFMT_R5G6B5)
|| (d3ddm.Format == D3DFMT_X1R5G5B5) ))
//todo
}
|
|