2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function FreeCprList()
8 #include <graphics/copper.h>
9 #include <proto/exec.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH1(void, FreeCprList
,
20 AROS_LHA(struct cprlist
*, cprList
, A0
),
23 struct GfxBase
*, GfxBase
, 94, Graphics
)
26 Deallocate all memory associated with this cprlist structure
29 cprlist - pointer to a cprlist structure
46 *****************************************************************************/
49 AROS_LIBBASE_EXT_DECL(struct GfxBase
*,GfxBase
)
51 struct cprlist
* NextCprList
= cprList
;
52 while (NULL
!= NextCprList
)
54 cprList
= NextCprList
;
55 NextCprList
= NextCprList
->Next
;
56 FreeMem(cprList
->start
, cprList
->MaxCount
<< 2 );
57 FreeMem(cprList
, sizeof(struct cprlist
));