2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include "graphics_intern.h"
10 /*****************************************************************************
13 #include <proto/graphics.h>
15 AROS_LH6(LONG
, WritePixelLine8
,
18 AROS_LHA(struct RastPort
* , rp
, A0
),
19 AROS_LHA(LONG
, xstart
, D0
),
20 AROS_LHA(LONG
, ystart
, D1
),
21 AROS_LHA(ULONG
, width
, D2
),
22 AROS_LHA(UBYTE
* , array
, A2
),
23 AROS_LHA(struct RastPort
* , tempRP
, A1
),
26 struct GfxBase
*, GfxBase
, 129, Graphics
)
29 Draw a horizontal line from an array of pens.
32 rp - destination RastPort
33 xstart,ystart - start coordinate of line
34 width - count of pixels to write (must be positive)
35 array - array of pen values. Allocate at least
36 ((width+15)>>4)<<4 bytes.
37 tempRP - temporary rastport
38 (copy of rp with Layer set to NULL,
39 temporary memory allocated for
40 temprp->BitMap with Rows set to 1,
41 temprp->BitMap BytesPerRow == ((width+15)>>4)<<1,
42 and temporary memory allocated for
43 temprp->BitMap->Planes[])
46 Number of plotted pixels.
59 27-11-96 digulla automatically created from
60 graphics_lib.fd and clib/graphics_protos.h
62 *****************************************************************************/
66 return WritePixelArray8(rp
,
76 } /* WritePixelLine8 */