1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00

[dxgi] Report refresh rate as a multiple of 1000 Hz

More closely emulates what Windows dows.
This commit is contained in:
Philip Rebohle 2018-05-04 17:37:29 +02:00
parent 9cec1ecca3
commit de803b3670
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ namespace dxvk {
DXGI_MODE_DESC mode;
mode.Width = devMode.dmPelsWidth;
mode.Height = devMode.dmPelsHeight;
mode.RefreshRate = { devMode.dmDisplayFrequency, 1 };
mode.RefreshRate = { devMode.dmDisplayFrequency * 1000, 1000 };
mode.Format = EnumFormat;
mode.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE;
mode.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;

View File

@ -170,7 +170,7 @@ namespace dxvk {
*ppTarget = nullptr;
if (!m_desc.Windowed)
hr = this->GetContainingOutput(ppTarget);
hr = m_adapter->GetOutputFromMonitor(m_monitor, ppTarget);
}
return hr;