mirror of https://github.com/GNOME/gimp.git
copy the alpha channel from the correct source.
2005-06-13 Michael Natterer <mitch@gimp.org> * app/core/gimplayer.c (gimp_layer_transform_color): copy the alpha channel from the correct source.
This commit is contained in:
parent
697142c2f2
commit
4cded149d9
|
@ -1,3 +1,8 @@
|
||||||
|
2005-06-13 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/core/gimplayer.c (gimp_layer_transform_color): copy the
|
||||||
|
alpha channel from the correct source.
|
||||||
|
|
||||||
2005-06-13 Sven Neumann <sven@gimp.org>
|
2005-06-13 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/core/gimp-transform-resize.c: added missing brackets in macros.
|
* app/core/gimp-transform-resize.c: added missing brackets in macros.
|
||||||
|
|
|
@ -797,7 +797,7 @@ gimp_layer_transform_color (GimpImage *gimage,
|
||||||
gimp_image_transform_color (gimage, drawable, d, src_type, s);
|
gimp_image_transform_color (gimage, drawable, d, src_type, s);
|
||||||
|
|
||||||
/* copy alpha channel */
|
/* copy alpha channel */
|
||||||
d[layerPR->bytes - 1] = src[bufPR->bytes - 1];
|
d[layerPR->bytes - 1] = s[bufPR->bytes - 1];
|
||||||
|
|
||||||
s += bufPR->bytes;
|
s += bufPR->bytes;
|
||||||
d += layerPR->bytes;
|
d += layerPR->bytes;
|
||||||
|
|
Loading…
Reference in New Issue