From 0cd27e7d5addbf97781e141875eb8d738ce6fb35 Mon Sep 17 00:00:00 2001 From: XProger Date: Fri, 6 Nov 2020 12:41:34 +0400 Subject: [PATCH] XBOX fix 1080i video mode support fix #277 --- src/platform/xbox/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/platform/xbox/main.cpp b/src/platform/xbox/main.cpp index 02e4292..2fcf139 100644 --- a/src/platform/xbox/main.cpp +++ b/src/platform/xbox/main.cpp @@ -263,9 +263,16 @@ HRESULT ContextCreate() { d3dpp.EnableAutoDepthStencil = TRUE; d3dpp.AutoDepthStencilFormat = D3DFMT_D24S8; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; - d3dpp.MultiSampleType = D3DMULTISAMPLE_4_SAMPLES_MULTISAMPLE_GAUSSIAN; 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))) return E_FAIL;