r4493@vps: verhaegs | 2007-04-19 14:44:00 -0400
[AROS.git] / rom / graphics / setoutlinepen.c
blob201eef6d8f971a82ad184bb2345881ed51d0c9e5
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: Graphics function SetOutlinePen()
6 Lang: english
7 */
8 #include "graphics_intern.h"
9 #include <graphics/rastport.h>
11 /*****************************************************************************
13 NAME */
14 #include <graphics/rastport.h>
15 #include <proto/graphics.h>
17 AROS_LH2(ULONG, SetOutlinePen,
19 /* SYNOPSIS */
20 AROS_LHA(struct RastPort *, rp, A0),
21 AROS_LHA(ULONG, pen, D0),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 163, Graphics)
26 /* FUNCTION
27 Set the outline pen and turn on area outline mode.
29 INPUTS
30 rp - RastPort
31 pen - pen
33 RESULT
34 Previous outline pen.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 HISTORY
47 29-10-95 digulla automatically created from
48 graphics_lib.fd and clib/graphics_protos.h
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
53 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
55 ULONG oldPen;
57 oldPen = rp->AOlPen;
59 rp->AOlPen = pen;
60 rp->Flags |= AREAOUTLINE;
62 return oldPen;
64 AROS_LIBFUNC_EXIT
66 } /* SetOutlinePen */