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

This commit is contained in:
Geoffrey McRae committed 2023-04-14 12:14:17 +10:00
1 parent 0c3dce3ca6
commit 0c176acf94
6 files changed
+68 -24

No files matched your search

+9 -1
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;