diff options
Diffstat (limited to 'tree/shade.c')
-rw-r--r-- | tree/shade.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tree/shade.c b/tree/shade.c new file mode 100644 index 00000000..cb33072e --- /dev/null +++ b/tree/shade.c @@ -0,0 +1,26 @@ +#include <fitz.h> + +fz_shade * +fz_keepshade(fz_shade *shade) +{ + shade->refs ++; + return shade; +} + +void +fz_dropshade(fz_shade *shade) +{ + if (--shade->refs == 0) + { + if (shade->cs) + fz_dropcolorspace(shade->cs); + fz_free(shade); + } +} + +fz_rect +fz_boundshade(fz_shade *shade, fz_matrix ctm) +{ + return fz_infiniterect; +} + |