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>
|
2007-12-17 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* libgimp/gimpregioniterator.c: code cleanup; reduced number of
|
* libgimp/gimpregioniterator.c: code cleanup; reduced number of
|
||||||
|
@ -393,19 +393,23 @@ 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,
|
|
||||||
layer->mode,
|
|
||||||
proj->image->visible,
|
|
||||||
INITIAL_INTENSITY);
|
|
||||||
else
|
|
||||||
combine_regions (dest, src, dest, mask, NULL,
|
combine_regions (dest, src, dest, mask, NULL,
|
||||||
layer->opacity * 255.999,
|
layer->opacity * 255.999,
|
||||||
layer->mode,
|
layer->mode,
|
||||||
proj->image->visible,
|
proj->image->visible,
|
||||||
COMBINE_INTEN_A_INTEN);
|
COMBINE_INTEN_A_INTEN);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
initial_region (src, dest, mask, NULL,
|
||||||
|
layer->opacity * 255.999,
|
||||||
|
layer->mode,
|
||||||
|
proj->image->visible,
|
||||||
|
INITIAL_INTENSITY);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
project_intensity_alpha (GimpProjection *proj,
|
project_intensity_alpha (GimpProjection *proj,
|
||||||
|
Reference in New Issue
Block a user