New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / freevportcoplists.c
blobd664eabbf1af1c26345f957d7de01f3fe94fdbf4
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function FreeVPortCopLists()
6 Lang: english
7 */
8 #include <graphics/copper.h>
9 #include <graphics/view.h>
10 #include <proto/exec.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/graphics.h>
18 AROS_LH1(void, FreeVPortCopLists,
20 /* SYNOPSIS */
21 AROS_LHA(struct ViewPort *, vp, A0),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 90, Graphics)
26 /* FUNCTION
27 Deallocate all memory associated with the CopList structures
28 for display, color, sprite and the user copper list. The
29 corresponding fields in this structure will be set to NULL.
31 INPUTS
32 vp - pointer to a ViewPort structure
34 RESULT
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 graphics/view.h
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
52 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
54 if (NULL != vp->DspIns)
56 FreeCopList(vp->DspIns);
57 vp->DspIns = NULL;
60 if (NULL != vp->SprIns)
62 FreeCopList(vp->SprIns);
63 vp->SprIns = NULL;
66 if (NULL != vp->ClrIns)
68 FreeCopList(vp->ClrIns);
69 vp->ClrIns = NULL;
72 if (NULL != vp->UCopIns)
74 if (NULL != vp->UCopIns->FirstCopList)
75 FreeCopList(vp->UCopIns->FirstCopList);
77 FreeMem(vp->UCopIns, sizeof(struct UCopList));
78 vp->UCopIns = NULL;
82 AROS_LIBFUNC_EXIT
83 } /* FreeVPortCopLists */