From 7b78e0d147c4d12ba4ef9e906023d1c8032387d6 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 8 Jul 2008 18:05:08 +0000 Subject: 2geomify the static defined hatchcircles of dropper tool, dyna draw and tweak tool. (bzr r6229) --- src/dropper-context.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/dropper-context.cpp') diff --git a/src/dropper-context.cpp b/src/dropper-context.cpp index 81814fc01..0be132340 100644 --- a/src/dropper-context.cpp +++ b/src/dropper-context.cpp @@ -111,7 +111,15 @@ static void sp_dropper_context_setup(SPEventContext *ec) ((SPEventContextClass *) parent_class)->setup(ec); } - SPCurve *c = SPCurve::new_from_foreign_bpath(spdc_circle); + /* TODO: have a look at sp_dyna_draw_context_setup where the same is done.. generalize? at least make it an arcto! */ + SPCurve *c = new SPCurve(); + const double C1 = 0.552; + c->moveto(-1,0); + c->curveto(-1, C1, -C1, 1, 0, 1 ); + c->curveto(C1, 1, 1, C1, 1, 0 ); + c->curveto(1, -C1, C1, -1, 0, -1 ); + c->curveto(-C1, -1, -1, -C1, -1, 0 ); + c->closepath(); dc->area = sp_canvas_bpath_new(sp_desktop_controls(ec->desktop), c); c->unref(); sp_canvas_bpath_set_fill(SP_CANVAS_BPATH(dc->area), 0x00000000,(SPWindRule)0); -- cgit v1.2.3