diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-11-19 03:15:23 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-11-19 03:15:23 +0100 |
commit | d5a8ffc6e88c7853169b972ee94286702b214c6b (patch) | |
tree | 6fa101e11734fbd3a0499d7a7e7c703da36a60a1 /tree | |
parent | ff0bcfe322c6ba8910105780544f498bff23bcd4 (diff) | |
download | mupdf-d5a8ffc6e88c7853169b972ee94286702b214c6b.tar.xz |
cleaned up colorspace loading in mupdf
Diffstat (limited to 'tree')
-rw-r--r-- | tree/colorspace.c | 1 | ||||
-rw-r--r-- | tree/debug.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tree/colorspace.c b/tree/colorspace.c index 799011f3..f5025468 100644 --- a/tree/colorspace.c +++ b/tree/colorspace.c @@ -37,6 +37,7 @@ fz_stdconvcolor(fz_colorspace *srcs, float *srcv, fz_colorspace *dsts, float *ds { float xyz[3]; int i; + if (srcs != dsts) { srcs->toxyz(srcs, srcv, xyz); diff --git a/tree/debug.c b/tree/debug.c index 2f112b9c..cbfffc20 100644 --- a/tree/debug.c +++ b/tree/debug.c @@ -71,7 +71,7 @@ static void lispcolor(fz_colornode *node, int level) { int i; indent(level); - printf("(color "); + printf("(color %s ", node->cs->name); for (i = 0; i < node->n; i++) printf("%g ", node->samples[i]); printf(")\n"); |