mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 21:04:26 +00:00
![Klemens Friedl](/assets/img/avatar_default.png)
* 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
30 lines
430 B
C
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);
|
|
}
|
|
|