Skip to content

Commit

Permalink
fix xx-cm
Browse files Browse the repository at this point in the history
  • Loading branch information
UjinT34 committed Feb 23, 2025
1 parent ad9974a commit b155613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocols/XXColorManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ CXXColorManagementImageDescriptionInfo::CXXColorManagementImageDescriptionInfo(S

const auto toProto = [](float value) { return int32_t(std::round(value * 10000)); };

if (settings.iccFd >= 0)
m_resource->sendIccFile(settings.iccFd, settings.iccSize);
if (settings.icc.fd >= 0)
m_resource->sendIccFile(settings.icc.fd, settings.icc.length);

// send preferred client paramateres
m_resource->sendPrimaries(toProto(settings.primaries.red.x), toProto(settings.primaries.red.y), toProto(settings.primaries.green.x), toProto(settings.primaries.green.y),
Expand Down

0 comments on commit b155613

Please sign in to comment.