2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Graphics function InitRastPort()
9 #include <graphics/rastport.h>
10 #include <proto/exec.h>
14 #include "graphics_intern.h"
15 #include "gfxfuncsupport.h"
17 /*****************************************************************************
20 #include <proto/graphics.h>
22 AROS_LH1(void, InitRastPort
,
25 AROS_LHA(struct RastPort
*, rp
, A1
),
28 struct GfxBase
*, GfxBase
, 33, Graphics
)
31 Initializes a RastPort structure.
34 rp - The RastPort to initialize.
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
54 29-10-95 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
61 /* Zero out everything, then set some valid defaults */
62 memset(rp
, 0, sizeof(struct RastPort
));
68 rp
->LinePtrn
= 0xFFFF;
70 SetFont (rp
, GfxBase
->DefaultFont
);