2 Copyright © 1995-2007, 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 *****************************************************************************/
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
));