X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxtools.c;h=f6853daff5caa667b665277df2342cbc6d29b7de;hp=2527675f87f44981883c57ff5f10f1fee3363d59;hb=395359a0831639fcc30aab4ea897e23ff8ab420c;hpb=7fb4a4ac393f19a0b8a8998a2f1deac88c97eda0 diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 2527675..f6853da 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -656,6 +656,13 @@ gfxbbox_t gfxbbox_expand_to_point(gfxbbox_t box, gfxcoord_t x, gfxcoord_t y) return box; } +gfxbbox_t gfxbbox_expand_to_bbox(gfxbbox_t box, gfxbbox_t box2) +{ + gfxbbox_expand_to_point(box, box2.xmin, box2.ymin); + gfxbbox_expand_to_point(box, box2.xmax, box2.ymax); + return box; +} + void gfxbbox_intersect(gfxbbox_t*box1, gfxbbox_t*box2) { if(box2->xmin > box1->xmin)