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> 2007-12-17 Sven Neumann <sven@gimp.org>
* libgimp/gimpregioniterator.c: code cleanup; reduced number of * libgimp/gimpregioniterator.c: code cleanup; reduced number of

View File

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