Commit 6bbec4dd authored by Dave Neary's avatar Dave Neary Committed by David Neary

Add alpha channel to temp buffer from gimpimage if there's an alpha


2003-07-04  Dave Neary  <bolsh@gimp.org>

        * app/core/gimpdrawable-bucket-fill.c: Add alpha channel
        to temp buffer from gimpimage if there's an alpha
        channel in the pattern being applied.
parent a0c1420c
2003-07-04 Dave Neary <bolsh@gimp.org>
* app/core/gimpdrawable-bucket-fill.c: Add alpha channel
to temp buffer from gimpimage if there's an alpha
channel in the pattern being applied.
2003-07-03 Sven Neumann <sven@gimp.org>
* plug-ins/common/gif.c (save_image): refuse to write comments that
......@@ -313,6 +313,17 @@ gimp_drawable_bucket_fill_full (GimpDrawable *drawable,
has_alpha = TRUE;
}
}
else if (pat_buf->bytes == 2 || pat_buf->bytes == 4)
{
/* If pattern being applied has an alpha channel,
* add one to the temp buffer from the image too.
*/
if (! has_alpha)
{
bytes ++;
has_alpha = TRUE;
}
}
buf_tiles = tile_manager_new ((x2 - x1), (y2 - y1), bytes);
pixel_region_init (&bufPR, buf_tiles, 0, 0, (x2 - x1), (y2 - y1), TRUE);
......
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