gimp r24781 - branches/gimp-2-4/app/paint



Author: neo
Date: Mon Feb  4 09:38:15 2008
New Revision: 24781
URL: http://svn.gnome.org/viewvc/gimp?rev=24781&view=rev

Log:
2008-02-04  Sven Neumann  <sven gimp org>

	* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
	only smooth the inner area of the mask so that we don't enlarge
	the boundary for hard brushes (bug #304798).


Modified:
   branches/gimp-2-4/app/paint/gimpbrushcore.c

Modified: branches/gimp-2-4/app/paint/gimpbrushcore.c
==============================================================================
--- branches/gimp-2-4/app/paint/gimpbrushcore.c	(original)
+++ branches/gimp-2-4/app/paint/gimpbrushcore.c	Mon Feb  4 09:38:15 2008
@@ -780,12 +780,17 @@
       BoundSeg    *boundary;
       gint         num_groups;
 
+      if (mask->width > 2 && mask->height > 2)
+        {
+          /*  smooth the mask in order to obtain a simpler boundary  */
+          pixel_region_init_temp_buf (&PR, mask,
+                                      1, 1, mask->width - 2, mask->height - 2);
+          smooth_region (&PR);
+        }
+
       pixel_region_init_temp_buf (&PR, mask,
                                   0, 0, mask->width, mask->height);
 
-      /*  smooth the mask in order to obtain a simpler boundary  */
-      smooth_region (&PR);
-
       boundary = boundary_find (&PR, BOUNDARY_WITHIN_BOUNDS,
                                 0, 0, PR.w, PR.h,
                                 0,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]