2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
9 #include <cybergraphx/cybergraphics.h>
10 #include <proto/exec.h>
11 #include <proto/graphics.h>
13 #include "cybergraphics_intern.h"
15 /*****************************************************************************
18 #include <proto/cybergraphics.h>
20 AROS_LH1(void, FreeCModeList
,
23 AROS_LHA(struct List
*, modeList
, A0
),
26 struct Library
*, CyberGfxBase
, 13, Cybergraphics
)
29 Frees a list of RTG modes returned by AllocCModeListTagList().
32 modeList - a list of RTG modes returned by AllocCModeListTagList().
43 AllocCModeListTagList()
47 *****************************************************************************/
51 struct CyberModeNode
*node
, *safe
;
53 ForeachNodeSafe(modeList
, node
, safe
) {
54 Remove((struct Node
*)node
);
55 FreeMem(node
, sizeof (struct CyberModeNode
));
58 FreeMem(modeList
, sizeof (struct List
));