From d838082e60a76e7b6af10197a775029b56f1e810 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 16 Jun 2008 15:34:22 +0000 Subject: don't use exact bbox in nr_arena_shape_update (speed-up) (bzr r5952) --- src/display/nr-arena-shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 4d03f879f..de5b9c770 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -252,7 +252,7 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g if (state & NR_ARENA_ITEM_STATE_BBOX) { if (shape->curve) { Geom::PathVector pv = shape->curve->get_pathvector() * to_2geom(gc->transform); - boundingbox = bounds_exact(pv); + boundingbox = Geom::bounds_fast(pv); item->bbox.x0 = (gint32)(boundingbox[0][0] - 1.0F); item->bbox.y0 = (gint32)(boundingbox[1][0] - 1.0F); item->bbox.x1 = (gint32)(boundingbox[0][1] + 1.9999F); @@ -276,7 +276,7 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g if (shape->curve) { Geom::PathVector pv = shape->curve->get_pathvector() * to_2geom(gc->transform); - boundingbox = bounds_exact(pv); + boundingbox = Geom::bounds_fast(pv); if (shape->_stroke.paint.type() != NRArenaShape::Paint::NONE || outline) { float width, scale; -- cgit v1.2.3