Allow multiple volumes with the same name if their creation dates differ.
[AROS.git] / workbench / libs / gadtools / freevisualinfo.c
blobe8a5dcee31bd5cf972c9bd167fee7e414b6fef34
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include <proto/intuition.h>
10 #include "gadtools_intern.h"
12 /*********************************************************************
14 NAME */
15 #include <proto/gadtools.h>
17 AROS_LH1(void, FreeVisualInfo,
19 /* SYNOPSIS */
20 AROS_LHA(APTR, vi, A0),
22 /* LOCATION */
23 struct Library *, GadToolsBase, 22, GadTools)
25 /* FUNCTION
26 FreeVisualInfo() frees a visual info structure created with
27 GetVisualInfo().
29 INPUTS
30 vi - the visual info structure to free, may be NULL.
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 GetVisualInfoA()
43 INTERNALS
45 HISTORY
47 ***************************************************************************/
49 AROS_LIBFUNC_INIT
51 if (vi)
53 FreeScreenDrawInfo(((struct VisualInfo *)vi)->vi_screen, ((struct VisualInfo *)vi)->vi_dri);
54 FreeVec(vi);
57 AROS_LIBFUNC_EXIT
59 } /* FreeVisualInfo */