mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-03 04:24:11 +01:00
[dxgi] Report refresh rate as a multiple of 1000 Hz
More closely emulates what Windows dows.
This commit is contained in:
parent
9cec1ecca3
commit
de803b3670
@ -199,7 +199,7 @@ namespace dxvk {
|
|||||||
DXGI_MODE_DESC mode;
|
DXGI_MODE_DESC mode;
|
||||||
mode.Width = devMode.dmPelsWidth;
|
mode.Width = devMode.dmPelsWidth;
|
||||||
mode.Height = devMode.dmPelsHeight;
|
mode.Height = devMode.dmPelsHeight;
|
||||||
mode.RefreshRate = { devMode.dmDisplayFrequency, 1 };
|
mode.RefreshRate = { devMode.dmDisplayFrequency * 1000, 1000 };
|
||||||
mode.Format = EnumFormat;
|
mode.Format = EnumFormat;
|
||||||
mode.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE;
|
mode.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE;
|
||||||
mode.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
|
mode.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
|
||||||
|
@ -170,7 +170,7 @@ namespace dxvk {
|
|||||||
*ppTarget = nullptr;
|
*ppTarget = nullptr;
|
||||||
|
|
||||||
if (!m_desc.Windowed)
|
if (!m_desc.Windowed)
|
||||||
hr = this->GetContainingOutput(ppTarget);
|
hr = m_adapter->GetOutputFromMonitor(m_monitor, ppTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
|
Loading…
Reference in New Issue
Block a user