From 9f9c93dcbdb80cf514fd41822c1f89e9dd72f0d6 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 9 Aug 2022 13:06:48 +0100 Subject: [PATCH] [d3d11] Use new wsi interface --- src/d3d11/d3d11_device.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 376f06e69..d05e99cc4 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -24,6 +24,8 @@ #include "d3d11_texture.h" #include "d3d11_video.h" +#include "../wsi/wsi_window.h" + #include "../util/util_shared_res.h" namespace dxvk { @@ -3047,7 +3049,7 @@ namespace dxvk { // Make sure the back buffer size is not zero DXGI_SWAP_CHAIN_DESC1 desc = *pDesc; - GetWindowClientSize(hWnd, + wsi::getWindowSize(hWnd, desc.Width ? nullptr : &desc.Width, desc.Height ? nullptr : &desc.Height);