New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / freecoplist.c
blob12afe3548e140b221079285ee5d9ce8a6258cf76
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function FreeCopList()
6 Lang: english
7 */
8 #include <exec/types.h>
9 #include <graphics/copper.h>
10 #include <proto/exec.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
15 NAME */
16 #include <proto/graphics.h>
18 AROS_LH1(void, FreeCopList,
20 /* SYNOPSIS */
21 AROS_LHA(struct CopList *, coplist, A0),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 91, Graphics)
26 /* FUNCTION
27 Deallocate all memory associated with this copper list.
29 INPUTS
30 coplist - pointer to a CopList structure
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 graphics/copper.h
43 INTERNALS
45 HISTORY
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
50 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
52 struct CopList * NextCopList = coplist;
53 while (NULL != NextCopList)
55 coplist = NextCopList;
56 /* get the pointer to the next CopList BEFORE we return it to free
57 * memory
59 NextCopList = coplist -> Next;
60 FreeMem(coplist->CopIns, sizeof(struct CopIns) * coplist->MaxCount);
61 FreeMem(coplist, sizeof(struct CopList));
64 AROS_LIBFUNC_EXIT
65 } /* FreeCopList */