1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-06 13:16:52 +02:00

XBOX fix 1080i video mode support fix #277

This commit is contained in:
XProger
2020-11-06 12:41:34 +04:00
parent 1f6c3a771e
commit 0cd27e7d5a

View File

@@ -263,9 +263,16 @@ HRESULT ContextCreate() {
d3dpp.EnableAutoDepthStencil = TRUE; d3dpp.EnableAutoDepthStencil = TRUE;
d3dpp.AutoDepthStencilFormat = D3DFMT_D24S8; d3dpp.AutoDepthStencilFormat = D3DFMT_D24S8;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.MultiSampleType = D3DMULTISAMPLE_4_SAMPLES_MULTISAMPLE_GAUSSIAN;
d3dpp.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_ONE; d3dpp.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_ONE;
if (d3dpp.BackBufferHeight == 480) {
d3dpp.MultiSampleType = D3DMULTISAMPLE_4_SAMPLES_MULTISAMPLE_GAUSSIAN;
} else if (d3dpp.BackBufferHeight == 720) {
d3dpp.MultiSampleType = D3DMULTISAMPLE_2_SAMPLES_MULTISAMPLE_QUINCUNX;
} else if (d3dpp.BackBufferHeight == 1080) {
d3dpp.MultiSampleType = D3DMULTISAMPLE_NONE;
}
if (FAILED(D3D->CreateDevice(0, D3DDEVTYPE_HAL, NULL, D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &device))) if (FAILED(D3D->CreateDevice(0, D3DDEVTYPE_HAL, NULL, D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &device)))
return E_FAIL; return E_FAIL;