mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
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:
commit
8631302e81
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue