Indentation fix, cleanup.
[AROS.git] / rom / graphics / readpixelline8.c
blobde800817ebc5d1e52ef0c59a7337dc9dae5dc740
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, ReadPixelLine8,
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, 128, Graphics)
28 /* FUNCTION
29 Read the pen numbers of a horizontal line into an array.
31 INPUTS
32 rp - RastPort
33 xstart,ystart - coordinate
34 width - count of pixels to read (must be positive).
35 array - array for storing of the pen numbers. Size must be
36 at least ((width+15)>>4)<<4 bytes.
37 tempRP - see ReadPixelArray8().
39 RESULT
40 Number of pixels read.
42 NOTES
43 This function doesn't make sense on true-/hicolor rastports.
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 INTERNALS
53 HISTORY
54 27-11-96 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
61 return ReadPixelArray8(rp,
62 xstart,
63 ystart,
64 xstart + width - 1,
65 ystart,
66 array,
67 tempRP);
69 AROS_LIBFUNC_EXIT
71 } /* ReadPixelLine8 */