grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / cgfx / movepixelarray.c
blob842c37991d81450e550a9a37c45ff714c4420860
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <hidd/graphics.h>
10 #include <aros/debug.h>
12 #include "cybergraphics_intern.h"
14 /*****************************************************************************
16 NAME */
17 #include <proto/cybergraphics.h>
19 AROS_LH7(ULONG, MovePixelArray,
21 /* SYNOPSIS */
22 AROS_LHA(UWORD , SrcX, D0),
23 AROS_LHA(UWORD , SrcY, D1),
24 AROS_LHA(struct RastPort *, RastPort, A1),
25 AROS_LHA(UWORD , DstX, D2),
26 AROS_LHA(UWORD , DstY, D3),
27 AROS_LHA(UWORD , SizeX, D4),
28 AROS_LHA(UWORD , SizeY, D5),
30 /* LOCATION */
31 struct Library *, CyberGfxBase, 22, Cybergraphics)
33 /* FUNCTION
34 Copies the pixels in a rectangular portion of a RastPort to another
35 rectangle with the same dimensions in the same RastPort.
37 INPUTS
38 SrcX, SrcY - top-lefthand corner of source rectangle.
39 RastPort - the RastPort to modify.
40 DstX, DstY - top-lefthand corner of destination rectangle.
41 SizeX, SizeY - size of the rectangles (in pixels).
43 RESULT
44 count - the number of pixels moved.
46 NOTES
48 EXAMPLE
50 BUGS
52 SEE ALSO
54 INTERNALS
56 *****************************************************************************/
58 AROS_LIBFUNC_INIT
60 ClipBlit(RastPort, SrcX, SrcY, RastPort, DstX, DstY, SizeX, SizeY,
61 0x00C0); /* Copy */
63 return SizeX * SizeY;
65 AROS_LIBFUNC_EXIT
66 } /* MovePixelArray */