mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
435a566751
* 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
29 lines
430 B
C
29 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);
|
|
}
|
|
|