Merge pull request #2144 from RichardsGameStudio/development

Allow correct display of widescreen resolutions (16:9 and 16:10 ratio) on a 4:3 ratio display
This commit is contained in:
Areloch 2019-03-31 12:22:09 -05:00 committed by GitHub
commit 8631302e81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
}
}