Commit de642dd1 authored by Committed by Tor LillqvistBrowse files
Add new GimpCanvasStyle value, GIMP_CANVAS_STYLE_XOR_DOTTED.
2005-06-24 Tor Lillqvist <email@example.com> * app/display/gimpcanvas.h: Add new GimpCanvasStyle value, GIMP_CANVAS_STYLE_XOR_DOTTED. * app/display/gimpcanvas.c (gimp_canvas_gc_new): Implement it like GIMP_CANVAS_STYLE_XOR_DASHED, except that we set the dash pattern to a single-pixel on-off one. * app/tools/gimpdrawtool.c (gimp_draw_tool_draw_boundary): Sort the boundary so that we can draw each connected group of segments using gimp_canvas_draw_lines(). (Even if we would still use gimp_canvas_draw_segments(), the boundary would have to be sorted so that the XOR drawing and GDK_CAP_NOT_LAST cooperate properly.) Use GIMP_CANVAS_STYLE_XOR_DOTTED so the outline doesn't look too heavy. Remove the dubious code snippet that offset some segments by one pixel. It didn't do what the comment claimed, and why one would need to do what the comment said, or what it actually did, is unclear. Now brush outlines shouldn't have gaps any longer. (#308710)
Showing with 80 additions and 58 deletions