2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function FreeVPortCopLists()
8 #include <graphics/copper.h>
9 #include <graphics/view.h>
10 #include <proto/exec.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH1(void, FreeVPortCopLists
,
21 AROS_LHA(struct ViewPort
*, vp
, A0
),
24 struct GfxBase
*, GfxBase
, 90, Graphics
)
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.
32 vp - pointer to a ViewPort structure
49 *****************************************************************************/
53 if (NULL
!= vp
->DspIns
)
55 FreeCopList(vp
->DspIns
);
59 if (NULL
!= vp
->SprIns
)
61 FreeCopList(vp
->SprIns
);
65 if (NULL
!= vp
->ClrIns
)
67 FreeCopList(vp
->ClrIns
);
71 if (NULL
!= vp
->UCopIns
)
73 if (NULL
!= vp
->UCopIns
->FirstCopList
)
74 FreeCopList(vp
->UCopIns
->FirstCopList
);
76 FreeMem(vp
->UCopIns
, sizeof(struct UCopList
));
82 } /* FreeVPortCopLists */