diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-11-24 06:42:52 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-11-24 06:42:52 +0100 |
commit | 4b2218b903da6de40e8a82b9e2a69157d415637c (patch) | |
tree | ca489110e7ee0dad118a8c13244ec3f8ab31492a /tree/shade.c | |
parent | b48de7618e25bc2cef9d9db4f9b49e1d546e438a (diff) | |
download | mupdf-4b2218b903da6de40e8a82b9e2a69157d415637c.tar.xz |
added shade code skeleton
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; +} + |