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@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Lauri Kenttä 2021-03-22 09:51:22 +01:00 committed by Alexandre Julliard
parent ca47818cd0
commit 6a307a0953
1 changed files with 1 additions and 0 deletions

View File

@ -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;