mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[idd] postprocess: centralize color transform state
This commit is contained in:
@@ -241,13 +241,14 @@ NTSTATUS LGIddMonitorSetGammaRamp(IDDCX_MONITOR monitor, const IDARG_IN_SET_GAMM
|
||||
transform->lut[i][3] = 1.0f;
|
||||
}
|
||||
|
||||
if (IsIdentityColorTransform(*transform))
|
||||
auto active = D12::Transform(transform);
|
||||
if (!active)
|
||||
{
|
||||
control.SetColorTransform(nullptr);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
control.SetColorTransform(std::move(transform));
|
||||
control.SetColorTransform(std::move(active));
|
||||
DEBUG_INFO("Display color transform updated (matrix:%d lut:%d)",
|
||||
input->MatrixEnabled, input->LutEnabled);
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user