1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-18 13:54:16 +01:00

[dxgi] Use back buffer size to determine fullscreen resolution

This is the correct behaviour on Windows and may fix some issues.
This commit is contained in:
Philip Rebohle 2018-07-12 16:00:33 +02:00
parent 2100d7aa3a
commit 9de3a619c2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -552,11 +552,9 @@ namespace dxvk {
::GetWindowRect(m_window, &m_windowState.rect);
if (m_desc.Flags & DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH) {
auto windowRect = m_windowState.rect;
DXGI_MODE_DESC displayMode;
displayMode.Width = windowRect.right - windowRect.left;
displayMode.Height = windowRect.bottom - windowRect.top;
displayMode.Width = m_desc.Width;
displayMode.Height = m_desc.Height;
displayMode.RefreshRate = m_descFs.RefreshRate;
displayMode.Format = m_desc.Format;
displayMode.ScanlineOrdering = m_descFs.ScanlineOrdering;