mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
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);
|
||
|
}
|
||
|
|