protocols/cm: Fix preferred image description (#11026)

This commit is contained in:
UjinT34
2025-07-15 20:33:14 +03:00
committed by GitHub
parent bc764f7065
commit e15014e031
6 changed files with 50 additions and 8 deletions

View File

@@ -3090,7 +3090,7 @@ SImageDescription CCompositor::getPreferredImageDescription() {
}
Debug::log(WARN, "FIXME: color management protocol is enabled, determine correct preferred image description");
// should determine some common settings to avoid unnecessary transformations while keeping maximum displayable precision
return SImageDescription{.primaries = NColorPrimaries::BT709};
return m_monitors.size() == 1 ? m_monitors[0]->m_imageDescription : SImageDescription{.primaries = NColorPrimaries::BT709};
}
bool CCompositor::shouldChangePreferredImageDescription() {