[gimp] libgimpcolor: use the proper GimpColorRenderingIntent type.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpcolor: use the proper GimpColorRenderingIntent type.
- Date: Thu, 20 Jan 2022 16:00:04 +0000 (UTC)
commit 32945864387e548ae9799132f5e6537a4b5257db
Author: Jehan <jehan girinstud io>
Date: Thu Jan 20 12:08:00 2022 +0100
libgimpcolor: use the proper GimpColorRenderingIntent type.
GimpColorRenderingIntent and BablIccIntent are actually 1-on-1
equivalent (for the common base values), but it's better anyway to call
with the right type. Also fixes this warning:
> libgimpcolor/gimpcolortransform.c:215:53: warning: implicit conversion
> from 'enum <anonymous>' to 'GimpColorRenderingIntent'
> [-Wenum-conversion]
libgimpcolor/gimpcolortransform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgimpcolor/gimpcolortransform.c b/libgimpcolor/gimpcolortransform.c
index 0e9c91d666..1f14f5e3cd 100644
--- a/libgimpcolor/gimpcolortransform.c
+++ b/libgimpcolor/gimpcolortransform.c
@@ -212,7 +212,7 @@ gimp_color_transform_new (GimpColorProfile *src_profile,
priv->src_format = gimp_color_profile_get_format (src_profile,
src_format,
- BABL_ICC_INTENT_RELATIVE_COLORIMETRIC,
+ GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC,
&error);
if (! priv->src_format)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]