gimp r24676 - in trunk: . app/paint app/tools
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24676 - in trunk: . app/paint app/tools
- Date: Tue, 22 Jan 2008 20:06:01 +0000 (GMT)
Author: neo
Date: Tue Jan 22 20:06:01 2008
New Revision: 24676
URL: http://svn.gnome.org/viewvc/gimp?rev=24676&view=rev
Log:
2008-01-22 Sven Neumann <sven gimp org>
* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
dilate the brush mask in order to obtain a simpler boundary.
Addresses bug #304798.
* app/tools/gimpbrushtool.c (gimp_brush_tool_draw_brush):
removed
redundant casts.
Modified:
trunk/ChangeLog
trunk/app/paint/gimpbrushcore.c
trunk/app/tools/gimpbrushtool.c
Modified: trunk/app/paint/gimpbrushcore.c
==============================================================================
--- trunk/app/paint/gimpbrushcore.c (original)
+++ trunk/app/paint/gimpbrushcore.c Tue Jan 22 20:06:01 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"
@@ -784,6 +786,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,
Modified: trunk/app/tools/gimpbrushtool.c
==============================================================================
--- trunk/app/tools/gimpbrushtool.c (original)
+++ trunk/app/tools/gimpbrushtool.c Tue Jan 22 20:06:01 2008
@@ -295,8 +295,8 @@
if (brush_core->brush_bound_segs)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (draw_tool->display->shell);
- gdouble width = (gdouble) brush_core->brush_bound_width;
- gdouble height = (gdouble) brush_core->brush_bound_height;
+ gdouble width = brush_core->brush_bound_width;
+ gdouble height = brush_core->brush_bound_height;
/* don't draw the boundary if it becomes too small */
if (SCALEX (shell, width) > 4 && SCALEY (shell, height) > 4)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]