in my app,using d3d8 when i set my FullScreen_RefreshRateInHz to unlimited it wun run at all, but it works when i use default.
can someone hlp me pls thnx
D3DPRESENT_PARAMETERS present;
ZeroMemory(&present, sizeof(present));
present.SwapEffect = D3DSWAPEFFECT_FLIP;
present.Windowed = FALSE;
present.BackBufferFormat = d3ddm.Format;
present.BackBufferWidth = d3ddm.Width;
present.BackBufferHeight = d3ddm.Height;
present.EnableAutoDepthStencil = TRUE;
present.AutoDepthStencilFormat = D3DFMT_D16;
present.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;
present.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
hr = pID3D->CreateDevice(D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&present,
&pID3DDevice);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement