Minor fixes to comments.
[AROS.git] / rom / graphics / writechunkypixels.c
blobb56109bf97843e1a18d429dff258875dbb5bd159
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include "gfxfuncsupport.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/graphics.h>
17 AROS_LH7(void, WriteChunkyPixels,
19 /* SYNOPSIS */
20 AROS_LHA(struct RastPort *, rp, A0),
21 AROS_LHA(LONG , xstart, D0),
22 AROS_LHA(LONG , ystart, D1),
23 AROS_LHA(LONG , xstop, D2),
24 AROS_LHA(LONG , ystop, D3),
25 AROS_LHA(UBYTE *, array, A2),
26 AROS_LHA(LONG , bytesperrow, D4),
28 /* LOCATION */
29 struct GfxBase *, GfxBase, 176, Graphics)
31 /* FUNCTION
32 Write a rectangular region of pen values into a rastport.
34 INPUTS
35 rp - destination RastPort
36 xstart,ystart - starting point
37 xstop,ystop - stopping point
38 array - array with pen values
39 bytesperrow - The number of bytes per row in the source array.
40 This should be at least as large as the number of pixels
41 being written per line.
43 RESULT
45 NOTES
47 EXAMPLE
49 BUGS
51 SEE ALSO
53 INTERNALS
55 HISTORY
56 27-11-96 digulla automatically created from
57 graphics_lib.fd and clib/graphics_protos.h
59 *****************************************************************************/
61 AROS_LIBFUNC_INIT
63 FIX_GFXCOORD(xstart);
64 FIX_GFXCOORD(ystart);
65 FIX_GFXCOORD(xstop);
66 FIX_GFXCOORD(ystop);
68 if ((xstart > xstop) || (ystart > ystop)) return;
70 write_pixels_8(rp, array , bytesperrow,
71 xstart, ystart, xstop, ystop,
72 NULL, TRUE, GfxBase);
74 AROS_LIBFUNC_EXIT
76 } /* WriteChunkyPixels */