diff options
| author | root <root@jtx.marker.es> | 2013-04-14 04:46:28 +0000 |
|---|---|---|
| committer | root <root@jtx.marker.es> | 2013-04-14 04:46:28 +0000 |
| commit | 329113c127323d603cdece99d3c5622d9a4864b0 (patch) | |
| tree | baf0f4ab99f48bd2e7627e9b053a532405838825 /src/display | |
| parent | testing halo (diff) | |
| parent | odg export: some work on gradients (diff) | |
| download | inkscape-329113c127323d603cdece99d3c5622d9a4864b0.tar.gz inkscape-329113c127323d603cdece99d3c5622d9a4864b0.zip | |
adding halos
(bzr r11950.1.91)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/cairo-utils.h | 2 | ||||
| -rw-r--r-- | src/display/canvas-bpath.cpp | 16 | ||||
| -rw-r--r-- | src/display/nr-style.cpp | 2 | ||||
| -rw-r--r-- | src/display/nr-style.h | 2 |
4 files changed, 9 insertions, 13 deletions
diff --git a/src/display/cairo-utils.h b/src/display/cairo-utils.h index 2596cd969..016f72d00 100644 --- a/src/display/cairo-utils.h +++ b/src/display/cairo-utils.h @@ -203,4 +203,4 @@ inline guint AssembleARGB32(guint32 a, guint32 r, guint32 g, guint32 b) fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : diff --git a/src/display/canvas-bpath.cpp b/src/display/canvas-bpath.cpp index 061ff7676..6ac69a325 100644 --- a/src/display/canvas-bpath.cpp +++ b/src/display/canvas-bpath.cpp @@ -146,10 +146,9 @@ sp_canvas_bpath_render (SPCanvasItem *item, SPCanvasBuf *buf) cairo_set_tolerance(buf->ct, 0.5); cairo_new_path(buf->ct); - feed_pathvector_to_cairo (buf->ct, cbp->curve->get_pathvector(), cbp->affine, area, /* optimized_stroke = */ !dofill, 1); - cairo_save(buf->ct); + if (dofill) { // RGB / BGR @@ -161,18 +160,15 @@ sp_canvas_bpath_render (SPCanvasItem *item, SPCanvasBuf *buf) if (dostroke) { ink_cairo_set_source_rgba32(buf->ct, cbp->stroke_rgba); - cairo_set_line_width(buf->ct, 1); + if(cbp->stroke_rgba == 0xffffff10){ + cairo_set_line_width(buf->ct, 3); + }else{ + cairo_set_line_width(buf->ct, 1); + } if (cbp->dashes[0] != 0 && cbp->dashes[1] != 0) { cairo_set_dash (buf->ct, cbp->dashes, 2, 0); } cairo_stroke(buf->ct); - cairo_restore(buf->ct); - //feed_pathvector_to_cairo (buf->ct, cbp->curve->get_pathvector(), cbp->affine, area, - ///* optimized_stroke = */ !dofill, 1); - ink_cairo_set_source_rgba32(buf->ct, 0xffffff20); - cairo_set_line_width(buf->ct, 7); - cairo_set_line_cap(buf->ct,CAIRO_LINE_CAP_ROUND); - cairo_stroke(buf->ct); } else { cairo_new_path(buf->ct); } diff --git a/src/display/nr-style.cpp b/src/display/nr-style.cpp index ba2340074..26d70ad15 100644 --- a/src/display/nr-style.cpp +++ b/src/display/nr-style.cpp @@ -220,4 +220,4 @@ void NRStyle::update() fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : diff --git a/src/display/nr-style.h b/src/display/nr-style.h index 80547c43e..cd0bd208f 100644 --- a/src/display/nr-style.h +++ b/src/display/nr-style.h @@ -81,4 +81,4 @@ struct NRStyle { fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : |
