[idd] updated to a VS2022 project with Windows 10 support

This commit is contained in:
Geoffrey McRae
2023-04-14 12:08:23 +10:00
parent 0c3dce3ca6
commit 0c176acf94
6 changed files with 68 additions and 24 deletions

View File

@@ -46,7 +46,15 @@ void CIndirectDeviceContext::InitAdapter()
return;
IDDCX_ADAPTER_CAPS caps = {};
caps.Size = sizeof(caps);
caps.Size = sizeof(caps);
/**
* For some reason if we do not set this flag sometimes windows will
* refuse to enumerate our virtual monitor. Intel also noted in their
* sources that if this is not set dynamic resolution changes from this
* driver will not work. This behaviour is not documented by Microsoft.
*/
caps.Flags = IDDCX_ADAPTER_FLAGS_USE_SMALLEST_MODE;
caps.MaxMonitorsSupported = 1;