[idd] all: add default refresh rate setting support

This commit is contained in:
Geoffrey McRae authored and Geoffrey McRae committed 2026-06-03 08:59:48 +10:00
1 parent c2add993ac
commit 65005c0dc0
7 files changed
+36 -12

No files matched your search

+6 -5
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);
}