screencopy: avoid crash on cm disabled

fixes #11310

closes #11312
This commit is contained in:
Vaxry 2025-08-02 14:35:14 +02:00
parent c14f792f8f
commit e1e23eb9bd
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -196,7 +196,7 @@ void CScreencopyFrame::renderMon() {
CRegion fakeDamage = {0, 0, INT16_MAX, INT16_MAX};
const bool IS_CM_AWARE = PROTO::colorManagement->isClientCMAware(m_client->client());
const bool IS_CM_AWARE = PROTO::colorManagement && PROTO::colorManagement->isClientCMAware(m_client->client());
CBox monbox = CBox{0, 0, m_monitor->m_pixelSize.x, m_monitor->m_pixelSize.y}
.translate({-m_box.x, -m_box.y}) // vvvv kinda ass-backwards but that's how I designed the renderer... sigh.