app/base/siox.c moved rectangle intersection into
2005-08-06 Sven Neumann <sven@gimp.org> * app/base/siox.c * app/core/gimpdrawable-foreground-extract.c: moved rectangle intersection into gimp_drawable_foreground_extract().
This commit is contained in:
committed by
Sven Neumann
parent
68f09c7cb6
commit
3c8a10e925
@ -524,10 +524,6 @@ gimp_foreground_select_tool_select (GimpFreeSelectTool *free_sel,
|
||||
0, 0, 127);
|
||||
gimp_scan_convert_free (scan_convert);
|
||||
|
||||
/* apply foreground and background markers */
|
||||
for (list = fg_select->strokes; list; list = list->next)
|
||||
gimp_foreground_select_tool_stroke (mask, list->data);
|
||||
|
||||
/* restrict working area to double the size of the bounding box */
|
||||
gimp_channel_bounds (mask, &x, &y, &x2, &y2);
|
||||
width = x2 - x;
|
||||
@ -538,6 +534,10 @@ gimp_foreground_select_tool_select (GimpFreeSelectTool *free_sel,
|
||||
width = MIN (width * 2, gimp_item_width (GIMP_ITEM (mask)) - x);
|
||||
height = MIN (height * 2, gimp_item_height (GIMP_ITEM (mask)) - y);
|
||||
|
||||
/* apply foreground and background markers */
|
||||
for (list = fg_select->strokes; list; list = list->next)
|
||||
gimp_foreground_select_tool_stroke (mask, list->data);
|
||||
|
||||
gimp_drawable_foreground_extract_rect (drawable,
|
||||
GIMP_FOREGROUND_EXTRACT_SIOX,
|
||||
GIMP_DRAWABLE (mask),
|
||||
@ -674,7 +674,8 @@ gimp_foreground_select_tool_push_stroke (GimpForegroundSelectTool *fg_select,
|
||||
stroke = g_new (FgSelectStroke, 1);
|
||||
|
||||
stroke->background = options->background;
|
||||
stroke->width = options->stroke_width / SCALEFACTOR_Y (shell);
|
||||
stroke->width = ROUND ((gdouble) options->stroke_width /
|
||||
SCALEFACTOR_Y (shell));
|
||||
stroke->num_points = fg_select->stroke->len;
|
||||
stroke->points = (GimpVector2 *) g_array_free (fg_select->stroke, FALSE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user