mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-22 15:22:02 +00:00
[idd] hdr: complete HDR display and cursor metadata
Publish BT.2020 chromaticities in the virtual monitor EDID so Windows receives a valid HDR colour volume. Extend cursor messages with their IddCx SDR white level and an explicit visibility-valid flag. Consumers can then calibrate cursors without treating colour-transform-only messages as cursor hides.
This commit is contained in:
@@ -515,8 +515,9 @@ static void sendPointer(bool newClient)
|
||||
KVMFRCursor *cursor = lgmpHostMemPtr(mem);
|
||||
cursor->x = app.pointerInfo.x;
|
||||
cursor->y = app.pointerInfo.y;
|
||||
cursor->sdrWhiteLevel = KVMFR_SDR_WHITE_LEVEL_DEFAULT;
|
||||
|
||||
const uint32_t flags = CURSOR_FLAG_POSITION |
|
||||
const uint32_t flags = CURSOR_FLAG_POSITION | CURSOR_FLAG_VISIBLE_VALID |
|
||||
(app.pointerShapeValid ? CURSOR_FLAG_SHAPE : 0) |
|
||||
(app.pointerInfo.visible ? CURSOR_FLAG_VISIBLE : 0);
|
||||
|
||||
@@ -524,7 +525,7 @@ static void sendPointer(bool newClient)
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t flags = 0;
|
||||
uint32_t flags = CURSOR_FLAG_VISIBLE_VALID;
|
||||
PLGMPMemory mem;
|
||||
if (app.pointerInfo.shapeUpdate)
|
||||
{
|
||||
@@ -539,6 +540,7 @@ static void sendPointer(bool newClient)
|
||||
app.pointerIndex = 0;
|
||||
}
|
||||
KVMFRCursor *cursor = lgmpHostMemPtr(mem);
|
||||
cursor->sdrWhiteLevel = KVMFR_SDR_WHITE_LEVEL_DEFAULT;
|
||||
|
||||
if (app.pointerInfo.positionUpdate || newClient)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user