mirror of https://github.com/GNOME/gimp.git
subtract 1 from outlined width/height instead of adding 1 to filled.
2006-06-05 Michael Natterer <mitch@gimp.org> * app/tools/gimpdrawtool.c (gimp_draw_tool_draw_rectangle_by_anchor) (gimp_draw_tool_draw_arc_by_anchor): subtract 1 from outlined width/height instead of adding 1 to filled.
This commit is contained in:
parent
e0d2542469
commit
64032cbaca
|
@ -1,3 +1,10 @@
|
|||
2006-06-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimpdrawtool.c
|
||||
(gimp_draw_tool_draw_rectangle_by_anchor)
|
||||
(gimp_draw_tool_draw_arc_by_anchor): subtract 1 from outlined
|
||||
width/height instead of adding 1 to filled.
|
||||
|
||||
2006-06-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimprectangletool.c (gimp_rectangle_tool_draw): use
|
||||
|
|
|
@ -545,10 +545,10 @@ gimp_draw_tool_draw_rectangle_by_anchor (GimpDrawTool *draw_tool,
|
|||
anchor,
|
||||
&tx, &ty);
|
||||
|
||||
if (filled)
|
||||
if (! filled)
|
||||
{
|
||||
width++;
|
||||
height++;
|
||||
width -= 1;
|
||||
height -= 1;
|
||||
}
|
||||
|
||||
gimp_canvas_draw_rectangle (GIMP_CANVAS (shell->canvas),
|
||||
|
@ -591,10 +591,10 @@ gimp_draw_tool_draw_arc_by_anchor (GimpDrawTool *draw_tool,
|
|||
anchor,
|
||||
&tx, &ty);
|
||||
|
||||
if (filled)
|
||||
if (! filled)
|
||||
{
|
||||
radius_x += 1;
|
||||
radius_y += 1;
|
||||
radius_x -= 1;
|
||||
radius_y -= 1;
|
||||
}
|
||||
|
||||
gimp_canvas_draw_arc (GIMP_CANVAS (shell->canvas), GIMP_CANVAS_STYLE_XOR,
|
||||
|
|
Loading…
Reference in New Issue