add an alpha channel to grayscale layers created from brush pipes.

2003-11-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gih.c (gih_load_one_brush): add an alpha channel
	to grayscale layers created from brush pipes.
This commit is contained in:
Sven Neumann 2003-11-15 15:27:22 +00:00 committed by Sven Neumann
parent db4ec04144
commit 050a543543
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-11-15 Sven Neumann <sven@gimp.org>
* plug-ins/common/gih.c (gih_load_one_brush): add an alpha channel
to grayscale layers created from brush pipes.
2003-11-15 Sven Neumann <sven@gimp.org>
* app/display/gimpcanvas.c (gimp_canvas_gc_new): no need to set

View File

@ -598,7 +598,10 @@ gih_load_one_brush (gint fd,
brush_buf, 0, 0, bh.width, bh.height);
if (image_type == GIMP_GRAY_IMAGE)
gimp_invert (layer_ID);
{
gimp_invert (layer_ID);
gimp_layer_add_alpha (layer_ID);
}
}
g_free (brush_buf);