[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

@@ -162,15 +162,16 @@ void CPipeServer::SetCursorPos(uint32_t x, uint32_t y)
WriteMsg(msg);
}
void CPipeServer::SetDisplayMode(uint32_t width, uint32_t height)
void CPipeServer::SetDisplayMode(uint32_t width, uint32_t height, uint32_t refresh)
{
if (!m_connected)
return;
LGPipeMsg msg;
msg.size = sizeof(msg);
msg.type = LGPipeMsg::SETDISPLAYMODE;
msg.displayMode.width = width;
msg.displayMode.height = height;
msg.size = sizeof(msg);
msg.type = LGPipeMsg::SETDISPLAYMODE;
msg.displayMode.width = width;
msg.displayMode.height = height;
msg.displayMode.refresh = refresh;
WriteMsg(msg);
}