Indentation fix, cleanup.
[AROS.git] / rom / graphics / initrastport.c
blobad3c22136072b4e3f131a7f729f4495408acb303
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: Graphics function InitRastPort()
6 Lang: english
7 */
9 #include <graphics/rastport.h>
10 #include <proto/exec.h>
12 #include <string.h>
14 #include "graphics_intern.h"
15 #include "gfxfuncsupport.h"
17 /*****************************************************************************
19 NAME */
20 #include <proto/graphics.h>
22 AROS_LH1(void, InitRastPort,
24 /* SYNOPSIS */
25 AROS_LHA(struct RastPort *, rp, A1),
27 /* LOCATION */
28 struct GfxBase *, GfxBase, 33, Graphics)
30 /* FUNCTION
31 Initializes a RastPort structure.
33 INPUTS
34 rp - The RastPort to initialize.
36 RESULT
37 all entries in RastPort get zeroed out, with the following exceptions:
39 Mask, FgPen, AOLPen, and LinePtrn are set to -1.
40 The DrawMode is set to JAM2
41 The font is set to the standard system font
43 NOTES
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 INTERNALS
53 HISTORY
54 29-10-95 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
61 /* Zero out everything, then set some valid defaults */
62 memset(rp, 0, sizeof(struct RastPort));
64 rp->Mask = 0xFF;
65 rp->FgPen = -1;
66 rp->AOlPen = -1;
67 rp->DrawMode = JAM2;
68 rp->LinePtrn = 0xFFFF;
70 SetFont (rp, GfxBase->DefaultFont);
72 AROS_LIBFUNC_EXIT
74 } /* InitRastPort */