[idd] all: add default refresh rate setting support

This commit is contained in:
Geoffrey McRae
2026-06-02 19:17:27 +10:00
committed by Geoffrey McRae
parent c2add993ac
commit 65005c0dc0
7 changed files with 36 additions and 12 deletions

View File

@@ -202,7 +202,7 @@ void CIndirectDeviceContext::OnAssignSwapChain()
if (m_doSetMode)
{
m_doSetMode = false;
g_pipe.SetDisplayMode(m_setMode.width, m_setMode.height); //FIXME: refresh
g_pipe.SetDisplayMode(m_setMode.width, m_setMode.height, m_setMode.refresh);
}
}
@@ -300,7 +300,7 @@ void CIndirectDeviceContext::SetResolution(int width, int height)
{
m_setMode.width = width;
m_setMode.height = height;
m_setMode.refresh = 120; //FIXME
m_setMode.refresh = g_settings.GetDefaultRefresh();
m_setMode.preferred = true;
g_settings.SetExtraMode(m_setMode);