mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[all] convert KVMFR frame bools to flags in a bitfield
This will allow us to add additional flags in the future while remaining backwards compatible with the host.
This commit is contained in:
@@ -275,8 +275,11 @@ static bool sendFrame(void)
|
||||
fi->stride = frame.stride;
|
||||
fi->pitch = frame.pitch;
|
||||
fi->offset = app.pageSize - FrameBufferStructSize;
|
||||
fi->blockScreensaver = os_blockScreensaver();
|
||||
fi->requestActivation = os_getAndClearPendingActivationRequest();
|
||||
fi->flags =
|
||||
(os_blockScreensaver() ?
|
||||
FRAME_FLAG_BLOCK_SCREENSAVER : 0) |
|
||||
(os_getAndClearPendingActivationRequest() ?
|
||||
FRAME_FLAG_REQUEST_ACTIVATION : 0);
|
||||
app.frameValid = true;
|
||||
|
||||
fi->damageRectsCount = frame.damageRectsCount;
|
||||
|
Reference in New Issue
Block a user