2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function InitRastPort()
8 #include "graphics_intern.h"
9 #include <graphics/rastport.h>
10 #include <proto/exec.h>
12 #include "gfxfuncsupport.h"
14 static const struct RastPort defaultRastPort
=
33 { 0,0,0,0, 0,0,0,0 }, /* minterms[] */
44 { 0,0 }, /* longreserved */
45 { 0,0,0,0, 0,0,0 }, /* wordreserved */
46 { 0,0,0,0, 0,0,0,0 }, /* reserved */
49 /*****************************************************************************
52 #include <proto/graphics.h>
54 AROS_LH1(BOOL
, InitRastPort
,
57 AROS_LHA(struct RastPort
*, rp
, A1
),
60 struct GfxBase
*, GfxBase
, 33, Graphics
)
63 Initializes a RastPort structure.
66 rp - The RastPort to initialize.
69 TRUE if the RastPort was successfully initialized and FALSE
73 You must call DeinitRastPort() before you free the structure.
75 AROS defines this function with a return value which you should
87 29-10-95 digulla automatically created from
88 graphics_lib.fd and clib/graphics_protos.h
90 *****************************************************************************/
94 CopyMem ((UBYTE
*)&defaultRastPort
, rp
, sizeof (struct RastPort
));
95 RP_BACKPOINTER(rp
) = rp
; /* Mark rastport as valid (no manual clone) */
97 SetFont (rp
, GfxBase
->DefaultFont
);