From 07c5dcd739cba7ec400d53669724df5543385190 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Mon, 10 Jul 2017 14:03:04 +0200 Subject: [PATCH] D3DBase: Set the fullscreen state in Create() --- Source/Core/VideoBackends/D3D/D3DBase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/VideoBackends/D3D/D3DBase.cpp b/Source/Core/VideoBackends/D3D/D3DBase.cpp index 730a722e5d..68b90d1f21 100644 --- a/Source/Core/VideoBackends/D3D/D3DBase.cpp +++ b/Source/Core/VideoBackends/D3D/D3DBase.cpp @@ -385,6 +385,12 @@ HRESULT Create(HWND wnd) SAFE_RELEASE(factory); SAFE_RELEASE(adapter); + if (SConfig::GetInstance().bFullscreen && !g_ActiveConfig.bBorderlessFullscreen) + { + swapchain->SetFullscreenState(true, nullptr); + swapchain->ResizeBuffers(0, xres, yres, DXGI_FORMAT_R8G8B8A8_UNORM, 0); + } + ID3D11Texture2D* buf; hr = swapchain->GetBuffer(0, IID_ID3D11Texture2D, (void**)&buf); if (FAILED(hr))