Set HDR of screen according to client request

This commit is contained in:
Yukino Song
2024-09-06 05:42:20 +08:00
parent 6f20cf91da
commit f22e02cf14
5 changed files with 99 additions and 64 deletions

View File

@@ -228,6 +228,10 @@ static const bool GetAddedDisplayName(const VIRTUAL_DISPLAY_ADD_OUT& addedDispla
return _path.targetInfo.id == addedDisplay.TargetId;
});
if (path == paths.end()) {
return false;
}
DISPLAYCONFIG_SOURCE_DEVICE_NAME sourceName = {};
sourceName.header.type = DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME;
sourceName.header.size = sizeof(DISPLAYCONFIG_SOURCE_DEVICE_NAME);