minor cleanup.

2007-12-17  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprojection-construct.c (project_intensity): minor
	cleanup.

svn path=/trunk/; revision=24382
This commit is contained in:
Sven Neumann
2007-12-17 10:45:05 +00:00
committed by Sven Neumann
parent 0c389448fa
commit eea8fcda76
2 changed files with 20 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2007-12-17 Sven Neumann <sven@gimp.org>
* app/core/gimpprojection-construct.c (project_intensity): minor
cleanup.
2007-12-17 Sven Neumann <sven@gimp.org>
* libgimp/gimpregioniterator.c: code cleanup; reduced number of

View File

@ -393,19 +393,23 @@ project_intensity (GimpProjection *proj,
PixelRegion *dest,
PixelRegion *mask)
{
if (! proj->construct_flag)
initial_region (src, dest, mask, NULL,
layer->opacity * 255.999,
layer->mode,
proj->image->visible,
INITIAL_INTENSITY);
else
if (proj->construct_flag)
{
combine_regions (dest, src, dest, mask, NULL,
layer->opacity * 255.999,
layer->mode,
proj->image->visible,
COMBINE_INTEN_A_INTEN);
}
else
{
initial_region (src, dest, mask, NULL,
layer->opacity * 255.999,
layer->mode,
proj->image->visible,
INITIAL_INTENSITY);
}
}
static void
project_intensity_alpha (GimpProjection *proj,