[gimp/goat-invasion: 549/608] app: the paint_mask buffer in gimp_paint_core_replace() contains a GimpTempBuf
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 549/608] app: the paint_mask buffer in gimp_paint_core_replace() contains a GimpTempBuf
- Date: Fri, 27 Apr 2012 21:11:31 +0000 (UTC)
commit 707165fba5fea88d66cd8120ed45711f127116b1
Author: Michael Natterer <mitch gimp org>
Date: Mon Apr 23 00:11:09 2012 +0200
app: the paint_mask buffer in gimp_paint_core_replace() contains a GimpTempBuf
not a TileManager, so use the right API to get a PixelRegion on it.
app/paint/gimppaintcore.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/app/paint/gimppaintcore.c b/app/paint/gimppaintcore.c
index b1d0927..7dce950 100644
--- a/app/paint/gimppaintcore.c
+++ b/app/paint/gimppaintcore.c
@@ -833,13 +833,12 @@ gimp_paint_core_replace (GimpPaintCore *core,
else
{
/* The mask is just the paint_mask */
- pixel_region_init (&paint_maskPR,
- gimp_gegl_buffer_get_tiles (paint_mask),
- paint_mask_rect->x,
- paint_mask_rect->y,
- paint_mask_rect->width,
- paint_mask_rect->height,
- FALSE);
+ pixel_region_init_temp_buf (&paint_maskPR,
+ gimp_gegl_buffer_get_temp_buf (paint_mask),
+ paint_mask_rect->x,
+ paint_mask_rect->y,
+ paint_mask_rect->width,
+ paint_mask_rect->height);
}
/* apply the paint area to the image */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]