merge to tip for backout
This commit is contained in:
Коммит
2785c8c78d
|
@ -584,7 +584,7 @@ LCMSBOOL MAT3solve(LPVEC3 x, LPMAT3 a, LPVEC3 b)
|
|||
|
||||
CopyMemory(&m, a, sizeof(MAT3));
|
||||
|
||||
if (MAT3inverse(&m, &a_1) < 0) return FALSE; // Singular matrix
|
||||
if (!MAT3inverse(&m, &a_1)) return FALSE; // Singular matrix
|
||||
|
||||
MAT3eval(x, &a_1, b);
|
||||
return TRUE;
|
||||
|
|
|
@ -126,8 +126,6 @@ LCMSBOOL LCMSEXPORT cmsBuildRGB2XYZtransferMatrix(LPMAT3 r, LPcmsCIExyY WhitePt,
|
|||
|
||||
xn = WhitePt -> x;
|
||||
yn = WhitePt -> y;
|
||||
if (yn == 0.0)
|
||||
return FALSE;
|
||||
xr = Primrs -> Red.x;
|
||||
yr = Primrs -> Red.y;
|
||||
xg = Primrs -> Green.x;
|
||||
|
@ -143,7 +141,7 @@ LCMSBOOL LCMSEXPORT cmsBuildRGB2XYZtransferMatrix(LPMAT3 r, LPcmsCIExyY WhitePt,
|
|||
|
||||
|
||||
// Result = Primaries ^ (-1) inverse matrix
|
||||
if (MAT3inverse(&Primaries, &Result) < 0)
|
||||
if (!MAT3inverse(&Primaries, &Result))
|
||||
return FALSE;
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче