define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / graphics / lategfxinit.c
blob2169bbc8f85aa924fbe5ca18c97b33da55b6e268
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Private graphics function for initializing graphics.hidd
6 Lang: english
7 */
8 #include "graphics_intern.h"
9 #include <exec/memory.h>
10 #include <graphics/rastport.h>
11 #include <proto/exec.h>
12 #include <oop/oop.h>
14 /*****i***********************************************************************
16 NAME */
17 #include <graphics/rastport.h>
18 #include <proto/graphics.h>
20 AROS_LH1(BOOL , LateGfxInit,
22 /* SYNOPSIS */
23 AROS_LHA(APTR, data, A0),
25 /* LOCATION */
26 struct GfxBase *, GfxBase, 181, Graphics)
28 /* FUNCTION
29 This function permits late initialization
30 of Graphics (After DOS but *before* Graphics is used, i.e.
31 before the first view/screen has been set up).
32 Can be used to load Graphics HIDDs from disk and initializing it.
33 The function only passes the data through to the
34 driver.
36 INPUTS
37 data - Data passed on to graphics driver.
39 RESULT
40 success - If TRUE initialization went OK.
42 NOTES
43 This function is private and AROS specific.
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 INTERNALS
53 HISTORY
54 29-10-95 digulla automatically created from
55 graphics_lib.fd and clib/graphics_protos.h
57 *****************************************************************************/
59 AROS_LIBFUNC_INIT
61 GfxBase->gb_LayersBase = (ULONG *)OpenLibrary("layers.library", 0);
63 /* We don't have a clue what 'data' parameter contains, but
64 the graphics driver does.
67 return GfxBase->gb_LayersBase && driver_LateGfxInit(data, GfxBase);
69 return FALSE;
71 AROS_LIBFUNC_EXIT
72 } /* LateGfxInit */