summaryrefslogtreecommitdiff
path: root/tree/blend.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-10-05 07:23:36 +0200
committerTor Andersson <tor@ghostscript.com>2004-10-05 07:23:36 +0200
commit7ad0eac4b8c81c5123ef5a62b23ba2895dd997c8 (patch)
tree09d5530e86be7e7b9da37dff2668e31d18a78fb5 /tree/blend.c
parent00905a4e2b959ccc3b79381acbf1d3b8e5319e8e (diff)
downloadmupdf-7ad0eac4b8c81c5123ef5a62b23ba2895dd997c8.tar.xz
refactor and rename node types
Diffstat (limited to 'tree/blend.c')
-rw-r--r--tree/blend.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/tree/blend.c b/tree/blend.c
deleted file mode 100644
index d2154240..00000000
--- a/tree/blend.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include <fitz.h>
-
-fz_error *
-fz_newblend(fz_node **nodep, fz_blendkind b, int k, int i)
-{
- fz_blend *node;
-
- node = fz_malloc(sizeof (fz_blend));
- if (!node)
- return fz_outofmem;
- *nodep = (fz_node*)node;
-
- fz_initnode((fz_node*)node, FZ_NBLEND);
- node->child = nil;
- node->mode = b;
- node->knockout = k;
- node->isolated = i;
-
- return nil;
-}
-
-void
-fz_freeblend(fz_blend *node)
-{
- if (node->child)
- fz_freenode(node->child);
- fz_free(node);
-}
-
-fz_rect
-fz_boundblend(fz_blend *node, fz_matrix ctm)
-{
- fz_node *child;
- fz_rect bbox;
- fz_rect r;
-
- bbox = FZ_INFRECT;
-
- for (child = node->child; child; child = child->next)
- {
- r = fz_boundnode(child, ctm);
- if (r.max.x >= r.min.x)
- {
- if (bbox.max.x >= bbox.min.x)
- bbox = fz_mergerects(r, bbox);
- else
- bbox = r;
- }
- }
-
- return bbox;
-}
-