[idd] driver: improve display mode support and resolution switch

This commit is contained in:
Geoffrey McRae committed 2025-03-29 22:42:49 +00:00
1 parent 6396ff1e9c
commit 7afb9b93eb
10 files changed
+194 -60

No files matched your search

+13
View File
@@ -160,4 +160,17 @@ void CPipeServer::SetCursorPos(uint32_t x, uint32_t y)
msg.curorPos.x = x;
msg.curorPos.y = y;
WriteMsg(msg);
}
void CPipeServer::SetDisplayMode(uint32_t width, uint32_t height)
{
if (!m_connected)
return;
LGPipeMsg msg;
msg.size = sizeof(msg);
msg.type = LGPipeMsg::SETDISPLAYMODE;
msg.displayMode.width = width;
msg.displayMode.height = height;
WriteMsg(msg);
}