mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 04:28:02 +02:00
Add pixman_add_trapezoids
This commit is contained in:
parent
019d381b40
commit
6c91529311
3 changed files with 30 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue