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:

committed by
Sven Neumann

parent
0c389448fa
commit
eea8fcda76
@ -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
|
||||
|
@ -393,18 +393,22 @@ 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);
|
||||
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
|
||||
combine_regions (dest, src, dest, mask, NULL,
|
||||
layer->opacity * 255.999,
|
||||
layer->mode,
|
||||
proj->image->visible,
|
||||
COMBINE_INTEN_A_INTEN);
|
||||
{
|
||||
initial_region (src, dest, mask, NULL,
|
||||
layer->opacity * 255.999,
|
||||
layer->mode,
|
||||
proj->image->visible,
|
||||
INITIAL_INTENSITY);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user