MorphOS Developer
Posts: 1520 from 2003/2/24
From: Finland
Just use WritePixelArrayAlpha() and you benefit from possible future enhancements:
#ifndef WritePixelArrayAlpha
#define WritePixelArrayAlpha(__p0, __p1, __p2, __p3, __p4, __p5, __p6, __p7, __p8, __p9) \
LP10(216, ULONG , WritePixelArrayAlpha, \
APTR , __p0, a0, \
UWORD , __p1, d0, \
UWORD , __p2, d1, \
UWORD , __p3, d2, \
struct RastPort *, __p4, a1, \
UWORD , __p5, d3, \
UWORD , __p6, d4, \
UWORD , __p7, d5, \
UWORD , __p8, d6, \
ULONG , __p9, d7, \
, CYBERGRAPHICS_BASE_NAME, 0, 0, 0, 0, 0, 0)
#endif
It is same as WritePixelArray() except that last argument is not pixel format but global alpha (0x0 - 0xffffffff) and it supports ARGB pixel format only.
It is really private but it has spread to OS4 and AROS and available in AfA OS also.
[ Edited by itix on 2007/3/15 0:18 ]
1 + 1 = 3 with very large values of 1