gimp r24786 - in trunk: . app/paint



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

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

	* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
	changed workaround to look at the brush size instead (bug #514309).


Modified:
   trunk/ChangeLog
   trunk/app/paint/gimpbrushcore.c

Modified: trunk/app/paint/gimpbrushcore.c
==============================================================================
--- trunk/app/paint/gimpbrushcore.c	(original)
+++ trunk/app/paint/gimpbrushcore.c	Mon Feb  4 15:37:33 2008
@@ -783,17 +783,16 @@
       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);
 
+      /* Large, complex brush outlines are a performance problem.
+       * Smooth the mask in order to obtain a simpler boundary.
+       */
+      if (mask->width > 32 && mask->height > 32)
+        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]