removed erraneous offset by 0.5 pixels.

2003-11-13 Simon Budig  <simon@gimp.org>

	* app/core/gimpdrawable-stroke.c: removed erraneous offset by
	0.5 pixels.

	* app/core/gimpstrokeoptions.c: Adjusted default width of libart
	strokes so that a rectangular selection gets stroked with sharp
	edges.
This commit is contained in:
Simon Budig 2003-11-13 03:27:21 +00:00 committed by Simon Budig
parent e6f46ae401
commit a07815f504
3 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,12 @@
2003-11-13 Simon Budig <simon@gimp.org>
* app/core/gimpdrawable-stroke.c: removed erraneous offset by
0.5 pixels.
* app/core/gimpstrokeoptions.c: Adjusted default width of libart
strokes so that a rectangular selection gets stroked with sharp
edges.
2003-11-12 Henrik Brix Andersen <brix@gimp.org>
* gimp/app/widgets/gimphelp.c

View File

@ -96,10 +96,8 @@ gimp_drawable_stroke_boundary (GimpDrawable *drawable,
seg = 0;
n_points = 0;
/* we offset all coordinates by 0.5 to align the brush with the path */
points[n_points].x = (gdouble) (stroke_segs[0].x1 + offset_y + 0.5);
points[n_points].y = (gdouble) (stroke_segs[0].y1 + offset_y + 0.5);
points[n_points].x = (gdouble) (stroke_segs[0].x1 + offset_y);
points[n_points].y = (gdouble) (stroke_segs[0].y1 + offset_y);
n_points++;
@ -110,8 +108,8 @@ gimp_drawable_stroke_boundary (GimpDrawable *drawable,
stroke_segs[seg].y1 != -1 ||
stroke_segs[seg].y2 != -1)
{
points[n_points].x = (gdouble) (stroke_segs[seg].x1 + offset_x + 0.5);
points[n_points].y = (gdouble) (stroke_segs[seg].y1 + offset_y + 0.5);
points[n_points].x = (gdouble) (stroke_segs[seg].x1 + offset_x);
points[n_points].y = (gdouble) (stroke_segs[seg].y1 + offset_y);
n_points++;
seg++;
@ -127,8 +125,8 @@ gimp_drawable_stroke_boundary (GimpDrawable *drawable,
n_points = 0;
seg++;
points[n_points].x = (gdouble) (stroke_segs[seg].x1 + offset_x + 0.5);
points[n_points].y = (gdouble) (stroke_segs[seg].y1 + offset_y + 0.5);
points[n_points].x = (gdouble) (stroke_segs[seg].x1 + offset_x);
points[n_points].y = (gdouble) (stroke_segs[seg].y1 + offset_y);
n_points++;
}

View File

@ -110,7 +110,7 @@ gimp_stroke_options_class_init (GimpStrokeOptionsClass *klass)
0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_WIDTH,
"width", NULL,
0.0, 2000.0, 5.0,
0.0, 2000.0, 6.0,
0);
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT,
"unit", NULL,