grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / graphics / setabpendrmd.c
blobe7a69e600b279dfb7b653c31a5ebcea74ef1f7d3
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: Graphics function SetABPenDrMd()
6 Lang: english
7 */
9 #include "graphics_intern.h"
10 #include "gfxfuncsupport.h"
12 /*****************************************************************************
14 NAME */
15 #include <graphics/rastport.h>
16 #include <proto/graphics.h>
18 AROS_LH4I(void, SetABPenDrMd,
20 /* SYNOPSIS */
21 AROS_LHA(struct RastPort *, rp, A1),
22 AROS_LHA(ULONG , apen, D0),
23 AROS_LHA(ULONG , bpen, D1),
24 AROS_LHA(ULONG , drawMode, D2),
26 /* LOCATION */
27 struct GfxBase *, GfxBase, 149, Graphics)
29 /* FUNCTION
30 Changes the foreground and background pen and the drawmode in one
31 step.
33 INPUTS
34 rp - Modify this RastPort
35 apen - The new foreground pen
36 bpen - The new background pen
37 drawmode - The new drawmode
39 RESULT
40 None.
42 NOTES
43 This function is faster than the sequence SetAPen(), SetBPen(),
44 SetDrMd().
46 This functions turns on PenMode for the RastPort.
48 EXAMPLE
50 BUGS
52 SEE ALSO
54 INTERNALS
56 HISTORY
57 29-10-95 digulla automatically created from
58 graphics_lib.fd and clib/graphics_protos.h
60 *****************************************************************************/
62 AROS_LIBFUNC_INIT
64 rp->FgPen = apen;
65 rp->BgPen = bpen;
66 rp->DrawMode = drawMode;
67 rp->linpatcnt = 15;
68 rp->Flags &= ~RPF_NO_PENS;
70 AROS_LIBFUNC_EXIT
71 } /* SetABPenDrMd */