Add pixman_add_trapezoids

This commit is contained in:
David Reveman 2005-03-03 18:02:23 +00:00
parent 019d381b40
commit 6c91529311
3 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-03-04 David Reveman <davidr@novell.com>
* src/pixman.h:
* src/ictrap.c: Add pixman_add_trapezoids.
2005-03-03 Carl Worth <cworth@cworth.org>
* src/icimage.c (miIsSolidAlpha): Port from render/mipict.c.

View file

@ -1,5 +1,5 @@
/*
* $Id: ictrap.c,v 1.21 2005-03-03 22:27:31 cworth Exp $
* $Id: ictrap.c,v 1.22 2005-03-04 02:02:23 davidr Exp $
*
* Copyright © 2002 Keith Packard
*
@ -166,3 +166,19 @@ pixman_composite_trapezoids (pixman_operator_t op,
pixman_format_destroy (format);
}
void
pixman_add_trapezoids (pixman_image_t *dst,
int x_off,
int y_off,
const pixman_trapezoid_t *traps,
int ntraps)
{
for (; ntraps; ntraps--, traps++)
{
if (!xTrapezoidValid (traps))
continue;
fbRasterizeTrapezoid (dst, traps, x_off, y_off);
}
}

View file

@ -54,7 +54,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/* $Id: pixman.h,v 1.17 2005-03-02 15:43:33 cworth Exp $ */
/* $Id: pixman.h,v 1.18 2005-03-04 02:02:23 davidr Exp $ */
/* libic.h */
@ -414,6 +414,13 @@ pixman_composite_trapezoids (pixman_operator_t op,
const pixman_trapezoid_t *traps,
int ntrap);
void
pixman_add_trapezoids (pixman_image_t *dst,
int x_off,
int y_off,
const pixman_trapezoid_t *traps,
int ntraps);
/* ictri.c */
void