2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: AROS Graphics function DeinitRastPort()
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include <graphics/rastport.h>
11 #include "gfxfuncsupport.h"
13 void obsolete_DeinitDriverData(struct RastPort
*, struct GfxBase
*);
15 /*****************************************************************************
18 #include <proto/graphics.h>
20 AROS_LH1(void, DeinitRastPort
,
23 AROS_LHA(struct RastPort
*, rp
, A1
),
26 struct GfxBase
*, GfxBase
, 179, Graphics
)
29 Frees the contents of a RastPort structure. The structure itself
33 rp - The RastPort which contents are to be freed.
39 You can initialize the RastPort again via InitRastPort() but
40 you must not use any other graphics function with it before
53 29-10-95 digulla automatically created from
54 graphics_lib.fd and clib/graphics_protos.h
56 *****************************************************************************/
59 AROS_LIBBASE_EXT_DECL(struct GfxBase
*,GfxBase
)
61 D(bug("DeInitRP()\n"));
63 #if NEW_DRIVERDATA_CODE
64 KILL_DRIVERDATA(rp
, GfxBase
);
66 if ( rp
->Flags
& RPF_DRIVER_INITED
)
68 D(bug("RP inited, rp=%p, %flags=%d=\n", rp
, rp
->Flags
));
70 if (GetDriverData(rp
)->dd_RastPort
== rp
)
72 D(bug("Calling DeInitDriverData\n"));
73 obsolete_DeinitDriverData (rp
, GfxBase
);
80 } /* DeinitRastPort */