forcing device into host mode requires a full config - which we will do in opendevice...
[AROS.git] / rom / graphics / freecprlist.c
blobc4adb503227ee46475f881a4306cb5d699169403
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function FreeCprList()
6 Lang: english
7 */
8 #include <graphics/copper.h>
9 #include <proto/exec.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/graphics.h>
17 AROS_LH1(void, FreeCprList,
19 /* SYNOPSIS */
20 AROS_LHA(struct cprlist *, cprList, A0),
22 /* LOCATION */
23 struct GfxBase *, GfxBase, 94, Graphics)
25 /* FUNCTION
26 Deallocate all memory associated with this cprlist structure
28 INPUTS
29 cprlist - pointer to a cprlist structure
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
40 graphics/copper.h
42 INTERNALS
44 HISTORY
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 struct cprlist * NextCprList = cprList;
51 while (NULL != NextCprList)
53 cprList = NextCprList;
54 NextCprList = NextCprList->Next;
55 FreeMem(cprList->start, cprList->MaxCount << 2 );
56 FreeMem(cprList, sizeof(struct cprlist));
59 AROS_LIBFUNC_EXIT
60 } /* FreeCprList */