app: add cairo support to boundary drawing
This commit is contained in:
parent
483efcbff5
commit
ecd59cd013
1 changed files with 13 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include "vectors/gimpvectors.h"
|
||||
|
||||
#include "display/gimpcanvas.h"
|
||||
#include "display/gimpcanvasboundary.h"
|
||||
#include "display/gimpcanvasguide.h"
|
||||
#include "display/gimpcanvashandle.h"
|
||||
#include "display/gimpcanvasline.h"
|
||||
|
|
@ -1471,6 +1472,18 @@ gimp_draw_tool_draw_boundary (GimpDrawTool *draw_tool,
|
|||
g_return_if_fail (n_bound_segs > 0);
|
||||
g_return_if_fail (bound_segs != NULL);
|
||||
|
||||
if (draw_tool->use_cairo)
|
||||
{
|
||||
GimpCanvasItem *item;
|
||||
|
||||
item = gimp_canvas_boundary_new (bound_segs, n_bound_segs,
|
||||
offset_x, offset_y);
|
||||
|
||||
draw_tool->items = g_list_append (draw_tool->items, item);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
shell = gimp_display_get_shell (draw_tool->display);
|
||||
|
||||
gdk_points = g_new0 (GdkPoint, n_bound_segs + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue