Fixed DirectX11 example.

This commit is contained in:
ocornut 2015-01-08 18:56:47 +00:00
parent b0ea57e518
commit dd8a7655f5

View File

@ -161,8 +161,8 @@ HRESULT InitDeviceD3D(HWND hWnd)
{ {
ZeroMemory(&sd, sizeof(sd)); ZeroMemory(&sd, sizeof(sd));
sd.BufferCount = 2; sd.BufferCount = 2;
sd.BufferDesc.Width = (UINT)ImGui::GetIO().DisplaySize.x; sd.BufferDesc.Width = 0;
sd.BufferDesc.Height = (UINT)ImGui::GetIO().DisplaySize.y; sd.BufferDesc.Height = 0;
sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
sd.BufferDesc.RefreshRate.Numerator = 60; sd.BufferDesc.RefreshRate.Numerator = 60;
sd.BufferDesc.RefreshRate.Denominator = 1; sd.BufferDesc.RefreshRate.Denominator = 1;