grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / graphics / cgx_support.c
blob2d84681cbaaaefbf9af7ca25e0ac6e48f81de368
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "graphics_intern.h"
7 #include "gfxfuncsupport.h"
9 /* Private lowlevel functions needed by cybergraphics.library */
11 AROS_LH9(LONG, WritePixels8,
12 AROS_LHA(struct RastPort *,rp, A0),
13 AROS_LHA(UBYTE *,array, A1),
14 AROS_LHA(ULONG, modulo, D0),
15 AROS_LHA(LONG, xstart, D1),
16 AROS_LHA(LONG, ystart, D2),
17 AROS_LHA(LONG, xstop, D3),
18 AROS_LHA(LONG, ystop, D4),
19 AROS_LHA(APTR, pixlut, A2),
20 AROS_LHA(BOOL, do_update, D5),
21 struct GfxBase *, GfxBase, 197, Graphics)
23 AROS_LIBFUNC_INIT
25 return write_pixels_8(rp, array, modulo, xstart, ystart, xstop, ystop, pixlut, do_update, GfxBase);
27 AROS_LIBFUNC_EXIT
30 AROS_LH8(LONG, FillRectPenDrMd,
31 AROS_LHA(struct RastPort *, rp, A0),
32 AROS_LHA(LONG, x1, D0),
33 AROS_LHA(LONG, y1, D1),
34 AROS_LHA(LONG, x2, D2),
35 AROS_LHA(LONG, y2, D3),
36 AROS_LHA(ULONG, pix, D4),
37 AROS_LHA(IPTR, drmd, D5),
38 AROS_LHA(BOOL, do_update, D6),
39 struct GfxBase *, GfxBase, 198, Graphics)
41 AROS_LIBFUNC_INIT
43 return fillrect_pendrmd(rp, x1, y1, x2, y2, pix, drmd, do_update, GfxBase);
45 AROS_LIBFUNC_EXIT
48 AROS_LH6(ULONG, DoRenderFunc,
49 AROS_LHA(struct RastPort *, rp, A0),
50 AROS_LHA(Point *, src, A1),
51 AROS_LHA(struct Rectangle *, rr, A2),
52 AROS_LHA(APTR, render_func, A3),
53 AROS_LHA(APTR, funcdata, A4),
54 AROS_LHA(BOOL, do_update, D0),
55 struct GfxBase *, GfxBase, 199, Graphics)
57 AROS_LIBFUNC_INIT
59 return do_render_func(rp, src, rr, render_func, funcdata, do_update, FALSE, GfxBase);
61 AROS_LIBFUNC_EXIT
64 AROS_LH6(LONG, DoPixelFunc,
65 AROS_LHA(struct RastPort *, rp, A0),
66 AROS_LHA(LONG, x, D0),
67 AROS_LHA(LONG, y, D1),
68 AROS_LHA(APTR, render_func, A1),
69 AROS_LHA(APTR, funcdata, A2),
70 AROS_LHA(BOOL, do_update, D2),
71 struct GfxBase *, GfxBase, 200, Graphics)
73 AROS_LIBFUNC_INIT
75 return do_pixel_func(rp, x, y, render_func, funcdata, do_update, GfxBase);
77 AROS_LIBFUNC_EXIT