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:
parent
2100d7aa3a
commit
9de3a619c2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user