[gimp] app: use gimp_gegl_apply_mask() in gimp_drawable_real_replace_buffer()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use gimp_gegl_apply_mask() in gimp_drawable_real_replace_buffer()
- Date: Wed, 2 May 2012 16:43:38 +0000 (UTC)
commit 3090b076062410e5a6742b1946f879502bb50047
Author: Michael Natterer <mitch gimp org>
Date: Mon Apr 23 19:24:47 2012 +0200
app: use gimp_gegl_apply_mask() in gimp_drawable_real_replace_buffer()
app/core/gimpdrawable-combine.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpdrawable-combine.c b/app/core/gimpdrawable-combine.c
index f9a0e9f..6f26896 100644
--- a/app/core/gimpdrawable-combine.c
+++ b/app/core/gimpdrawable-combine.c
@@ -24,10 +24,10 @@
#include "core-types.h"
#include "base/pixel-region.h"
-#include "base/tile-manager.h"
#include "paint-funcs/paint-funcs.h"
+#include "gegl/gimp-gegl-loops.h"
#include "gegl/gimp-gegl-nodes.h"
#include "gegl/gimp-gegl-utils.h"
@@ -384,11 +384,11 @@ gimp_drawable_real_replace_buffer (GimpDrawable *drawable,
dest_buffer,
GEGL_RECTANGLE (0, 0, 0, 0));
- g_object_unref (dest_buffer);
-
- pixel_region_init_temp_buf (&tempPR, temp_buf, 0, 0, width, height);
+ gimp_gegl_apply_mask (mask_buffer, mask_buffer_region,
+ dest_buffer, GEGL_RECTANGLE (0, 0, width, height),
+ 1.0);
- apply_mask_to_region (&tempPR, &maskPR, OPAQUE_OPACITY);
+ g_object_unref (dest_buffer);
pixel_region_init_temp_buf (&tempPR, temp_buf, 0, 0, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]