hughsie/colord

Alarm Code Context

Opened this issue · 1 comments

I'm reading through lcms2 to try and get things working and I notice that this code:

cmsSetAlarmCodes (alarm_codes);

Should not work, if lcms2 uses contexts to store the alarm codes. But I find it unlikely that colord has a non-functioning gamut checker, so I'm not sure what to make of that.

Expected code:

cmsSetAlarmCodesTHR(cd_icc_get_context (icc), alarm_codes);

But I find it unlikely that colord has a non-functioning gamut checker

I know it used to work, but I've not used that code in anger for many years.

cmsSetAlarmCodesTHR(cd_icc_get_context (icc), alarm_codes);

That looks much better entirely -- can you do a PR please.