Code

don't use exact bbox in nr_arena_shape_update (speed-up)
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 16 Jun 2008 15:34:22 +0000 (15:34 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 16 Jun 2008 15:34:22 +0000 (15:34 +0000)
src/display/nr-arena-shape.cpp

index 4d03f879f4d04d292299a9d77c12aa435c2c4f44..de5b9c770033d991c49d9298294520978006f631 100644 (file)
@@ -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;