add missing include and missing call to gimp_drawable_mask_intersect().
2008-05-21 Michael Natterer <mitch@gimp.org> * app/core/gimpdrawable-process.c (gimp_drawable_process): add missing include and missing call to gimp_drawable_mask_intersect(). svn path=/trunk/; revision=25736
This commit is contained in:

committed by
Michael Natterer

parent
3842f7cb03
commit
3b56173831
@ -1,3 +1,12 @@
|
|||||||
|
2008-05-21 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/core/gimpdrawable-process.c (gimp_drawable_process): add
|
||||||
|
missing include and missing call to gimp_drawable_mask_intersect().
|
||||||
|
|
||||||
|
2008-05-21 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/gegl/gimpdesaturateconfig.c: use a stock_id that exists.
|
||||||
|
|
||||||
2008-05-21 Martin Nordholts <martinn@svn.gnome.org>
|
2008-05-21 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
Made the Foreground Select Tool work again.
|
Made the Foreground Select Tool work again.
|
||||||
|
@ -26,9 +26,11 @@
|
|||||||
#include "base/pixel-region.h"
|
#include "base/pixel-region.h"
|
||||||
|
|
||||||
#include "gimpdrawable.h"
|
#include "gimpdrawable.h"
|
||||||
|
#include "gimpdrawable-process.h"
|
||||||
#include "gimpdrawable-shadow.h"
|
#include "gimpdrawable-shadow.h"
|
||||||
#include "gimpprogress.h"
|
#include "gimpprogress.h"
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
gimp_drawable_process (GimpDrawable *drawable,
|
gimp_drawable_process (GimpDrawable *drawable,
|
||||||
GimpProgress *progress,
|
GimpProgress *progress,
|
||||||
@ -36,22 +38,26 @@ gimp_drawable_process (GimpDrawable *drawable,
|
|||||||
PixelProcessorFunc func,
|
PixelProcessorFunc func,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
PixelRegion srcPR, destPR;
|
gint x, y, width, height;
|
||||||
gint x, y, width, height;
|
|
||||||
|
|
||||||
g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
|
g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
|
||||||
g_return_if_fail (gimp_item_is_attached (GIMP_ITEM (drawable)));
|
g_return_if_fail (gimp_item_is_attached (GIMP_ITEM (drawable)));
|
||||||
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
|
g_return_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress));
|
||||||
|
|
||||||
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
|
if (gimp_drawable_mask_intersect (drawable, &x, &y, &width, &height))
|
||||||
x, y, width, height, FALSE);
|
{
|
||||||
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
|
PixelRegion srcPR, destPR;
|
||||||
x, y, width, height, TRUE);
|
|
||||||
|
|
||||||
pixel_regions_process_parallel (func, data, 2, &srcPR, &destPR);
|
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
|
||||||
|
x, y, width, height, FALSE);
|
||||||
|
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
|
||||||
|
x, y, width, height, TRUE);
|
||||||
|
|
||||||
gimp_drawable_merge_shadow_tiles (drawable, TRUE, undo_desc);
|
pixel_regions_process_parallel (func, data, 2, &srcPR, &destPR);
|
||||||
gimp_drawable_free_shadow_tiles (drawable);
|
|
||||||
|
|
||||||
gimp_drawable_update (drawable, x, y, width, height);
|
gimp_drawable_merge_shadow_tiles (drawable, TRUE, undo_desc);
|
||||||
|
gimp_drawable_free_shadow_tiles (drawable);
|
||||||
|
|
||||||
|
gimp_drawable_update (drawable, x, y, width, height);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user