[gimp/metadata-browser] app: the paint_mask buffer in gimp_paint_core_replace() contains a GimpTempBuf



commit e5646ea88f4ae6d65c9aafd523cc20936990eba0
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]