From 63a134a2b2f32935d8f8aee0859de05fc7a46cde Mon Sep 17 00:00:00 2001 From: cheesequake Date: Wed, 3 Apr 2024 03:12:12 +0530 Subject: [PATCH] Issue #11021: cairo-ARGB32 uses "associated alpha", so changed the new formats accordingly. --- app/text/gimptextlayer.c | 6 +++--- libgimpcolor/gimpcairo.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c index 82af355a31..7900a22518 100644 --- a/app/text/gimptextlayer.c +++ b/app/text/gimptextlayer.c @@ -1029,13 +1029,13 @@ gimp_text_layer_render_layout (GimpTextLayer *layer, switch (gimp_text_layout_get_trc (layout)) { case GIMP_TRC_LINEAR: - format = babl_format_with_space ("RGBA float", gimp_text_layout_get_space (layout)); + format = babl_format_with_space ("RaGaBaA float", gimp_text_layout_get_space (layout)); break; case GIMP_TRC_NON_LINEAR: - format = babl_format_with_space ("R'G'B'A float", gimp_text_layout_get_space (layout)); + format = babl_format_with_space ("R'aG'aB'aA float", gimp_text_layout_get_space (layout)); break; case GIMP_TRC_PERCEPTUAL: - format = babl_format_with_space ("R~G~B~A float", gimp_text_layout_get_space (layout)); + format = babl_format_with_space ("R~aG~aB~aA float", gimp_text_layout_get_space (layout)); break; default: g_return_if_reached (); diff --git a/libgimpcolor/gimpcairo.c b/libgimpcolor/gimpcairo.c index b93e0be65f..fef4050407 100644 --- a/libgimpcolor/gimpcairo.c +++ b/libgimpcolor/gimpcairo.c @@ -182,7 +182,7 @@ gimp_cairo_surface_get_format (cairo_surface_t *surface) #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 17, 2) /* Since Cairo 1.17.2 */ case CAIRO_FORMAT_RGB96F: return babl_format ("R'G'B' float"); - case CAIRO_FORMAT_RGBA128F: return babl_format ("R'G'B'A float"); + case CAIRO_FORMAT_RGBA128F: return babl_format ("R'aG'aB'aA float"); #endif default: