Indentation fix, cleanup.
[AROS.git] / rom / graphics / writepixelline8.c
blobf017876ed022a82c68ea39ca4a68bfd739eb0b0a
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "graphics_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/graphics.h>
15 AROS_LH6(LONG, WritePixelLine8,
17 /* SYNOPSIS */
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),
25 /* LOCATION */
26 struct GfxBase *, GfxBase, 129, Graphics)
28 /* FUNCTION
29 Draw a horizontal line from an array of pens.
31 INPUTS
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[])
45 RESULT
46 Number of plotted pixels.
48 NOTES
50 EXAMPLE
52 BUGS
54 SEE ALSO
56 INTERNALS
58 HISTORY
59 27-11-96 digulla automatically created from
60 graphics_lib.fd and clib/graphics_protos.h
62 *****************************************************************************/
64 AROS_LIBFUNC_INIT
66 return WritePixelArray8(rp,
67 xstart,
68 ystart,
69 xstart + width - 1,
70 ystart,
71 array,
72 tempRP);
74 AROS_LIBFUNC_EXIT
76 } /* WritePixelLine8 */