2 Copyright © 1995-2007, 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 *****************************************************************************/
60 D(bug("DeInitRP()\n"));
62 #if NEW_DRIVERDATA_CODE
63 KILL_DRIVERDATA(rp
, GfxBase
);
65 if ( rp
->Flags
& RPF_DRIVER_INITED
)
67 D(bug("RP inited, rp=%p, %flags=%d=\n", rp
, rp
->Flags
));
69 if (GetDriverData(rp
)->dd_RastPort
== rp
)
71 D(bug("Calling DeInitDriverData\n"));
72 obsolete_DeinitDriverData (rp
, GfxBase
);
79 } /* DeinitRastPort */