Commit 75562157 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Bug 558420 – projection incorrect with alpha-less layers

2008-10-29  Sven Neumann  <sven@gimp.org>

	Bug 558420 – projection incorrect with alpha-less layers

	* app/core/gimpprojection-construct.c 
(gimp_projection_initialize):
	need to initialize the projection if the covering layer is not
	opaque.


svn path=/trunk/; revision=27460
parent 8942ef2d
2008-10-29 Sven Neumann <sven@gimp.org>
Bug 558420 – projection incorrect with alpha-less layers
* app/core/gimpprojection-construct.c (gimp_projection_initialize):
need to initialize the projection if the covering layer is not
opaque.
2008-10-29 Michael Natterer <mitch@gimp.org> 2008-10-29 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpstrokeeditor.c: move the "Antialias" toggle from * app/widgets/gimpstrokeeditor.c: move the "Antialias" toggle from
......
...@@ -400,6 +400,7 @@ gimp_projection_initialize (GimpProjection *proj, ...@@ -400,6 +400,7 @@ gimp_projection_initialize (GimpProjection *proj,
! gimp_drawable_has_alpha (GIMP_DRAWABLE (item)) && ! gimp_drawable_has_alpha (GIMP_DRAWABLE (item)) &&
! gimp_layer_get_mask (GIMP_LAYER (item)) && ! gimp_layer_get_mask (GIMP_LAYER (item)) &&
gimp_layer_get_mode (GIMP_LAYER (item)) == GIMP_NORMAL_MODE && gimp_layer_get_mode (GIMP_LAYER (item)) == GIMP_NORMAL_MODE &&
gimp_layer_get_opacity (GIMP_LAYER (item)) == GIMP_OPACITY_OPAQUE &&
(off_x <= x) && (off_x <= x) &&
(off_y <= y) && (off_y <= y) &&
(off_x + gimp_item_width (item) >= x + w) && (off_x + gimp_item_width (item) >= x + w) &&
......
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