Lauri Kenttä : mscms: Support COLOR_CMYK to COLOR_3_CHANNEL translation.

Alexandre Julliard julliard at winehq.org
Mon Mar 22 17:15:51 CDT 2021


Module: wine
Branch: master
Commit: 6a307a0953c0763e8d7d0c57ca7faacac72454ad
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6a307a0953c0763e8d7d0c57ca7faacac72454ad

Author: Lauri Kenttä <lauri.kentta at gmail.com>
Date:   Mon Mar 22 09:51:22 2021 +0100

mscms: Support COLOR_CMYK to COLOR_3_CHANNEL translation.

It doesn't seem to matter whether COLOR_3_CHANNEL is mapped to
TYPE_RGB or TYPE_CMY, so I've left it as TYPE_RGB as is the default.

This makes Purple Pen orienteering map app usable (colors, not B/W).

Signed-off-by: Lauri Kenttä <lauri.kentta at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mscms/liblcms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/mscms/liblcms.c b/dlls/mscms/liblcms.c
index 1f43c359c4a..04fae980d26 100644
--- a/dlls/mscms/liblcms.c
+++ b/dlls/mscms/liblcms.c
@@ -173,6 +173,7 @@ static BOOL CDECL lcms_translate_colors( void *transform, COLOR *in, DWORD count
         case COLOR_GRAY: for (i = 0; i < count; i++) cmsDoTransform( transform, &in[i].cmyk, &out[i].gray, 1 ); return TRUE;
         case COLOR_CMYK: for (i = 0; i < count; i++) cmsDoTransform( transform, &in[i].cmyk, &out[i].cmyk, 1 ); return TRUE;
         case COLOR_XYZ:  for (i = 0; i < count; i++) cmsDoTransform( transform, &in[i].cmyk, &out[i].XYZ, 1 ); return TRUE;
+        case COLOR_3_CHANNEL: for (i = 0; i < count; i++) cmsDoTransform( transform, &in[i].cmyk, &out[i].gen3ch, 1 ); return TRUE;
         default: break;
         }
         break;




More information about the wine-cvs mailing list