mirror of https://github.com/GNOME/gimp.git
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:
parent
db4ec04144
commit
050a543543
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue