2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include <exec/memory.h>
10 #include <proto/intuition.h>
11 #include "gadtools_intern.h"
13 /*********************************************************************
16 #include <proto/gadtools.h>
17 #include <intuition/screens.h>
18 #include <utility/tagitem.h>
20 AROS_LH2(APTR
, GetVisualInfoA
,
23 AROS_LHA(struct Screen
*, screen
, A0
),
24 AROS_LHA(struct TagItem
*, tagList
, A1
),
27 struct Library
*, GadToolsBase
, 21, GadTools
)
30 GetVisualInfoA() creates a visual info structure, which is needed
31 by several gadtools functions. When you're done using it, you have
32 to call FreeVisualInfo().
35 screen - pointer to the screen to create a visual info structure for
37 taglist - additional tags (none defined, yet)
40 A (private) visual info structure. NULL indicates an error.
55 ***************************************************************************/
59 struct VisualInfo
*vi
;
64 vi
= AllocVec(sizeof(struct VisualInfo
), MEMF_ANY
);
68 vi
->vi_screen
= screen
;
69 vi
->vi_dri
= GetScreenDrawInfo(screen
);
75 } /* GetVisualInfoA */