gimp r24677 - in branches/gimp-2-4: . app/paint
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24677 - in branches/gimp-2-4: . app/paint
- Date: Tue, 22 Jan 2008 20:07:06 +0000 (GMT)
Author: neo
Date: Tue Jan 22 20:07:06 2008
New Revision: 24677
URL: http://svn.gnome.org/viewvc/gimp?rev=24677&view=rev
Log:
2008-01-22 Sven Neumann <sven gimp org>
Merged from trunk:
* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
dilate the brush mask in order to obtain a simpler boundary.
Addresses bug #304798.
Modified:
branches/gimp-2-4/ChangeLog
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 Tue Jan 22 20:07:06 2008
@@ -30,6 +30,8 @@
#include "base/pixel-region.h"
#include "base/temp-buf.h"
+#include "paint-funcs/paint-funcs.h"
+
#include "core/gimpbrush.h"
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
@@ -781,6 +783,9 @@
pixel_region_init_temp_buf (&PR, mask,
0, 0, mask->width, mask->height);
+ /* dilate the mask in order to obtain a simpler boundary */
+ dilate_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]