Skip to content

Commit

Permalink
Set the min/max conditions
Browse files Browse the repository at this point in the history
TAC below 1% makes no sense at all
  • Loading branch information
mm2 committed Feb 22, 2024
1 parent f6b092b commit df0ffb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmsvirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ int InkLimitingSampler(CMSREGISTER const cmsUInt16Number In[], CMSREGISTER cmsUI
Out[1] = _cmsQuickSaturateWord(In[1] * Ratio); // M
Out[2] = _cmsQuickSaturateWord(In[2] * Ratio); // Y

Out[3] = In[3]; // K (untouched)
Out[3] = In[3]; // K (untouched)

return TRUE;
}
Expand All @@ -404,7 +404,7 @@ cmsHPROFILE CMSEXPORT cmsCreateInkLimitingDeviceLinkTHR(cmsContext ContextID,
return NULL;
}

if (Limit < 0.0 || Limit > 400) {
if (Limit < 1.0 || Limit > 400) {

cmsSignalError(ContextID, cmsERROR_RANGE, "InkLimiting: Limit should be between 1..400");
if (Limit < 1) Limit = 1;
Expand Down

0 comments on commit df0ffb1

Please sign in to comment.