diff options
author | Mattias Andrée <maandree@kth.se> | 2017-06-17 22:37:19 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-06-17 22:37:19 +0200 |
commit | 4fdc4d3594aa6c604143b76904aeb84a7a25cad9 (patch) | |
tree | 7d0829a5651aef3355387c9a76e515f7a07df7f0 /libcolour-template.c | |
parent | Remove noop operation (diff) | |
download | libcolour-4fdc4d3594aa6c604143b76904aeb84a7a25cad9.tar.gz libcolour-4fdc4d3594aa6c604143b76904aeb84a7a25cad9.tar.bz2 libcolour-4fdc4d3594aa6c604143b76904aeb84a7a25cad9.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcolour-template.c')
-rw-r--r-- | libcolour-template.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcolour-template.c b/libcolour-template.c index f7149c9..22afd26 100644 --- a/libcolour-template.c +++ b/libcolour-template.c @@ -153,13 +153,13 @@ get_primaries(libcolour_rgb_t *cs) if (eliminate(M, 3, 6)) return -1; - memcpy(M[0], M[0] + 3, 3 * sizeof(TYPE)), M[0][3] = Sr; - memcpy(M[1], M[1] + 3, 3 * sizeof(TYPE)), M[1][3] = Sg; - memcpy(M[2], M[2] + 3, 3 * sizeof(TYPE)), M[2][3] = Sb; + memcpy(M[0], M[0] + 3, 3 * sizeof(TYPE)); + memcpy(M[1], M[1] + 3, 3 * sizeof(TYPE)); + memcpy(M[2], M[2] + 3, 3 * sizeof(TYPE)); - w.ciexyz.X = M[0][3]; - w.ciexyz.Y = M[1][3]; - w.ciexyz.Z = M[2][3]; + w.ciexyz.X = Sr; + w.ciexyz.Y = Sg; + w.ciexyz.Z = Sb; cs->red.model = LIBCOLOUR_CIEXYY; cs->green.model = LIBCOLOUR_CIEXYY; |