mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
Issue #11021: cairo-ARGB32 uses "associated alpha", so changed the new formats accordingly.
This commit is contained in:
parent
e34b5d3267
commit
63a134a2b2
2 changed files with 4 additions and 4 deletions
|
@ -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 ();
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue