Commit 50d7242b authored by Michael Natterer's avatar Michael Natterer 😴

app: remove gimp_image_transform_rgb()

and use gimp_rgba_get_pixel() instead.
parent 3e119c5a
......@@ -2633,27 +2633,6 @@ gimp_image_inc_instance_count (GimpImage *image)
/* color transforms / utilities */
void
gimp_image_transform_rgb (const GimpImage *dest_image,
GimpImageType dest_type,
const GimpRGB *rgb,
guchar *color)
{
const Babl *dest_format;
guchar col[4];
g_return_if_fail (GIMP_IS_IMAGE (dest_image));
g_return_if_fail (rgb != NULL);
g_return_if_fail (color != NULL);
dest_format = gimp_image_get_format_with_alpha (dest_image, dest_type);
gimp_rgba_get_uchar (rgb, &col[0], &col[1], &col[2], &col[3]);
babl_process (babl_fish (babl_format ("R'G'B'A u8"), dest_format),
col, color, 1);
}
TempBuf *
gimp_image_transform_temp_buf (const GimpImage *dest_image,
GimpImageType dest_type,
......
......@@ -332,10 +332,6 @@ void gimp_image_inc_instance_count (GimpImage *image);
/* color transforms / utilities */
void gimp_image_transform_rgb (const GimpImage *dest_image,
GimpImageType dest_type,
const GimpRGB *rgb,
guchar *color);
TempBuf * gimp_image_transform_temp_buf (const GimpImage *dest_image,
GimpImageType dest_type,
TempBuf *temp_buf,
......
......@@ -165,8 +165,9 @@ _gimp_paintbrush_motion (GimpPaintCore *paint_core,
opacity *= gradient_color.a;
gimp_rgb_set_alpha (&gradient_color, GIMP_OPACITY_OPAQUE);
gimp_image_transform_rgb (image, gimp_drawable_type (drawable),
&gradient_color, pixel);
gimp_rgba_get_pixel (&gradient_color,
gimp_drawable_get_format_with_alpha (drawable),
pixel);
color_pixels (temp_buf_get_data (area), pixel,
area->width * area->height,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment