mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-24 04:29:48 +01:00
renderer: fix fullscreen hdr check (#9076)
This commit is contained in:
parent
25add26881
commit
52b9ae592b
1 changed files with 1 additions and 1 deletions
|
@ -1479,7 +1479,7 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
||||||
SURF->colorManagement->setHDRMetadata(createHDRMetadata(SURF->colorManagement.get()->imageDescription(), pMonitor->output->parsedEDID));
|
SURF->colorManagement->setHDRMetadata(createHDRMetadata(SURF->colorManagement.get()->imageDescription(), pMonitor->output->parsedEDID));
|
||||||
if (needsHdrMetadataUpdate)
|
if (needsHdrMetadataUpdate)
|
||||||
pMonitor->output->state->setHDRMetadata(SURF->colorManagement->hdrMetadata());
|
pMonitor->output->state->setHDRMetadata(SURF->colorManagement->hdrMetadata());
|
||||||
} else
|
} else if ((pMonitor->output->state->state().hdrMetadata.hdmi_metadata_type1.eotf == 2) != *PHDR)
|
||||||
pMonitor->output->state->setHDRMetadata(*PHDR ? createHDRMetadata(2, pMonitor->output->parsedEDID) : createHDRMetadata(0, pMonitor->output->parsedEDID));
|
pMonitor->output->state->setHDRMetadata(*PHDR ? createHDRMetadata(2, pMonitor->output->parsedEDID) : createHDRMetadata(0, pMonitor->output->parsedEDID));
|
||||||
m_previousFSWindow = WINDOW;
|
m_previousFSWindow = WINDOW;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue