wayland/color management: fix waylandToKwinIntent

We support relative colorimetric with bpc now, so it needs to also be mapped in the function
This commit is contained in:
Xaver Hugl 2024-09-03 00:42:27 +02:00
parent d66925251a
commit 5b2304c709

View file

@ -160,8 +160,9 @@ static std::optional<RenderingIntent> waylandToKwinIntent(uint32_t intent)
return RenderingIntent::RelativeColorimetric;
case QtWaylandServer::xx_color_manager_v4::render_intent::render_intent_absolute:
return RenderingIntent::AbsoluteColorimetric;
case QtWaylandServer::xx_color_manager_v4::render_intent::render_intent_saturation:
case QtWaylandServer::xx_color_manager_v4::render_intent::render_intent_relative_bpc:
return RenderingIntent::RelativeColorimetricWithBPC;
case QtWaylandServer::xx_color_manager_v4::render_intent::render_intent_saturation:
return std::nullopt;
}
return std::nullopt;