summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-22 22:03:10 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-22 22:03:10 +0000
commitc636971bde8a8d9676b58cc870bbbdfd527be36c (patch)
tree3fff62f3147650e2f533d13b9fbf616ed364589d /src/display
parentcreate method for Livarot paths to load PathVectors instead of NArtBpaths (diff)
downloadinkscape-c636971bde8a8d9676b58cc870bbbdfd527be36c.tar.gz
inkscape-c636971bde8a8d9676b58cc870bbbdfd527be36c.zip
use LoadPathVector instead of LoadArtBPath everywhere
(bzr r6017)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/canvas-bpath.cpp3
-rw-r--r--src/display/nr-arena-shape.cpp8
2 files changed, 6 insertions, 5 deletions
diff --git a/src/display/canvas-bpath.cpp b/src/display/canvas-bpath.cpp
index 3c46a9049..76ef54e76 100644
--- a/src/display/canvas-bpath.cpp
+++ b/src/display/canvas-bpath.cpp
@@ -24,6 +24,7 @@
#include <livarot/int-line.h>
#include <livarot/BitLigne.h>
#include <libnr/nr-pixops.h>
+#include <libnr/nr-convert2geom.h>
void nr_pixblock_render_bpath_rgba (Shape* theS,uint32_t color,NRRectL &area,char* destBuf,int stride);
@@ -140,7 +141,7 @@ sp_canvas_bpath_update (SPCanvasItem *item, NR::Matrix const &affine, unsigned i
if ((cbp->fill_rgba & 0xff) || (cbp->stroke_rgba & 0xff)) {
Path* thePath=new Path;
- thePath->LoadArtBPath(SP_CURVE_BPATH(cbp->curve), affine, true);
+ thePath->LoadPathVector(cbp->curve->get_pathvector(), to_2geom(affine), true);
thePath->Convert(0.25);
if ((cbp->fill_rgba & 0xff) && (cbp->curve->get_length() > 2)) {
Shape* theShape=new Shape;
diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp
index b4a6c82e5..b87c93a0c 100644
--- a/src/display/nr-arena-shape.cpp
+++ b/src/display/nr-arena-shape.cpp
@@ -443,8 +443,8 @@ nr_arena_shape_update_fill(NRArenaShape *shape, NRGC *gc, NRRectL *area, bool fo
Path* thePath=new Path;
Shape* theShape=new Shape;
{
- NR::Matrix tempMat(gc->transform);
- thePath->LoadArtBPath(SP_CURVE_BPATH(shape->curve),tempMat,true);
+ Geom::Matrix tempMat(to_2geom(gc->transform));
+ thePath->LoadPathVector(shape->curve->get_pathvector(), tempMat, true);
}
if (is_inner_area(*area, NR_ARENA_ITEM(shape)->bbox)) {
@@ -558,8 +558,8 @@ nr_arena_shape_update_stroke(NRArenaShape *shape,NRGC* gc, NRRectL *area)
Path* thePath = new Path;
Shape* theShape = new Shape;
{
- NR::Matrix tempMat(gc->transform);
- thePath->LoadArtBPath(SP_CURVE_BPATH(shape->curve), tempMat, true);
+ Geom::Matrix tempMat( to_2geom(gc->transform) );
+ thePath->LoadPathVector(shape->curve->get_pathvector(), tempMat, true);
}
// add some padding to the rendering area, so clipped path does not go into a render area