Update gfxD3D11Device.cpp

This commit is contained in:
Richard Marrevee 2017-12-22 17:11:31 +01:00 committed by GitHub
parent 10dfe46ede
commit 592e443c77

View file

@ -238,7 +238,7 @@ DXGI_SWAP_CHAIN_DESC GFXD3D11Device::setupPresentParams(const GFXVideoMode &mode
if (mode.fullScreen)
{
d3dpp.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
d3dpp.BufferDesc.Scaling = DXGI_MODE_SCALING_CENTERED;
d3dpp.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED;
d3dpp.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH;
}
@ -1865,4 +1865,4 @@ void GFXD3D11Device::setDebugMarker(ColorI color, const char *name)
MultiByteToWideChar(CP_ACP, 0, name, -1, eventName, 260);
mUserAnnotation->SetMarker(eventName);
}
}
}