gimp r24780 - in trunk: . app/paint
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24780 - in trunk: . app/paint
- Date: Mon, 4 Feb 2008 09:36:45 +0000 (GMT)
Author: neo
Date: Mon Feb 4 09:36:45 2008
New Revision: 24780
URL: http://svn.gnome.org/viewvc/gimp?rev=24780&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:
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 09:36:45 2008
@@ -783,12 +783,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]