Commit bba8f695 authored by Michael Natterer's avatar Michael Natterer 😴

Revert "Bug 791512 - make the selection boundary detection the same as 2.8"

This commit was fixing only a symptom of our channel/selection
problem, making it appear things were fine.

This reverts commit 27512d80.
parent 54ca0a7f
......@@ -20,8 +20,7 @@
/* half intensity for mask */
#define GIMP_BOUNDARY_HALF_WAY_PERCEPTUAL 0.5
#define GIMP_BOUNDARY_HALF_WAY_LINEAR 0.214041
#define GIMP_BOUNDARY_HALF_WAY 0.5
typedef enum
......
......@@ -1088,7 +1088,7 @@ gimp_channel_real_boundary (GimpChannel *channel,
babl_format ("Y float"),
GIMP_BOUNDARY_IGNORE_BOUNDS,
x1, y1, x2, y2,
GIMP_BOUNDARY_HALF_WAY_LINEAR,
GIMP_BOUNDARY_HALF_WAY,
&channel->num_segs_out);
x1 = MAX (x1, x3);
y1 = MAX (y1, y3);
......@@ -1101,7 +1101,7 @@ gimp_channel_real_boundary (GimpChannel *channel,
babl_format ("Y float"),
GIMP_BOUNDARY_WITHIN_BOUNDS,
x1, y1, x2, y2,
GIMP_BOUNDARY_HALF_WAY_LINEAR,
GIMP_BOUNDARY_HALF_WAY,
&channel->num_segs_in);
}
else
......
......@@ -267,7 +267,7 @@ floating_sel_boundary (GimpLayer *layer,
babl_format ("A float"),
GIMP_BOUNDARY_WITHIN_BOUNDS,
0, 0, width, height,
GIMP_BOUNDARY_HALF_WAY_LINEAR,
GIMP_BOUNDARY_HALF_WAY,
&layer->fs.num_segs);
/* offset the segments */
......
......@@ -310,7 +310,7 @@ gimp_region_select_tool_draw (GimpDrawTool *draw_tool)
0, 0,
gegl_buffer_get_width (region_sel->region_mask),
gegl_buffer_get_height (region_sel->region_mask),
GIMP_BOUNDARY_HALF_WAY_LINEAR,
GIMP_BOUNDARY_HALF_WAY,
&region_sel->n_segs);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment