summaryrefslogtreecommitdiff
path: root/tree/shade.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-12-09 11:14:36 +0100
committerTor Andersson <tor@ghostscript.com>2004-12-09 11:14:36 +0100
commit6c1637c8df7708a7d195b37b298e593b9496edea (patch)
treed8d32c6d2f6a6cee05c0d6bce1e726a397c6afb1 /tree/shade.c
parent550970cd3c57ca2a455c9954c8871226031d6d76 (diff)
downloadmupdf-6c1637c8df7708a7d195b37b298e593b9496edea.tar.xz
ugly shade4
Diffstat (limited to 'tree/shade.c')
-rw-r--r--tree/shade.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tree/shade.c b/tree/shade.c
index cb33072e..67a64e4e 100644
--- a/tree/shade.c
+++ b/tree/shade.c
@@ -14,6 +14,7 @@ fz_dropshade(fz_shade *shade)
{
if (shade->cs)
fz_dropcolorspace(shade->cs);
+ fz_free(shade->mesh);
fz_free(shade);
}
}
@@ -21,6 +22,7 @@ fz_dropshade(fz_shade *shade)
fz_rect
fz_boundshade(fz_shade *shade, fz_matrix ctm)
{
- return fz_infiniterect;
+ ctm = fz_concat(shade->matrix, ctm);
+ return fz_transformaabb(ctm, shade->bbox);
}