reactos/rosapps/smartpdf/fitz/world/res_shade.c
Klemens Friedl 435a566751 SmartPDF - lightweight pdf viewer app for rosapps
* sumatrapdf - vendor import
* everything compiles (libjpeg, poppler, fitz, sumatrapdf)
* does NOT link

(remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it)

svn path=/trunk/; revision=29295
2007-09-29 08:39:35 +00:00

30 lines
430 B
C

#include "fitz-base.h"
#include "fitz-world.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->mesh);
fz_free(shade);
}
}
fz_rect
fz_boundshade(fz_shade *shade, fz_matrix ctm)
{
ctm = fz_concat(shade->matrix, ctm);
return fz_transformaabb(ctm, shade->bbox);
}