summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/D3DBase.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2014-07-11 15:26:38 +0200
committerJules Blok <jules.blok@gmail.com>2014-07-19 21:14:48 +0200
commit9064bf147d3a805e82f386aca9becc7f32b51ef8 (patch)
tree1b3bb8b94b9a029329dd37cffa7cabf348798b3a /Source/Core/VideoBackends/D3D/D3DBase.cpp
parentd00e76b3efc83b4e55f5eb35910d82d4cdec824b (diff)
D3D: Don't set the windowed mode size when we initialize in fullscreen.
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DBase.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/D3DBase.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DBase.cpp b/Source/Core/VideoBackends/D3D/D3DBase.cpp
index 718ed9eec8..1d03e9b33b 100644
--- a/Source/Core/VideoBackends/D3D/D3DBase.cpp
+++ b/Source/Core/VideoBackends/D3D/D3DBase.cpp
@@ -279,10 +279,13 @@ HRESULT Create(HWND wnd)
hr = output->FindClosestMatchingMode(&mode_desc, &swap_chain_desc.BufferDesc, nullptr);
if (FAILED(hr)) MessageBox(wnd, _T("Failed to find a supported video mode"), _T("Dolphin Direct3D 11 backend"), MB_OK | MB_ICONERROR);
- // forcing buffer resolution to xres and yres..
- // this is not a problem as long as we're in windowed mode
- swap_chain_desc.BufferDesc.Width = xres;
- swap_chain_desc.BufferDesc.Height = yres;
+ if (swap_chain_desc.Windowed)
+ {
+ // forcing buffer resolution to xres and yres..
+ // this is not a problem as long as we're in windowed mode
+ swap_chain_desc.BufferDesc.Width = xres;
+ swap_chain_desc.BufferDesc.Height = yres;
+ }
#if defined(_DEBUG) || defined(DEBUGFAST)
// Creating debug devices can sometimes fail if the user doesn't have the correct