2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <proto/exec.h>
10 #include <proto/alib.h>
13 #include <aros/debug.h>
16 /*****************************************************************************
19 #include <proto/layers.h>
20 #include "layers_intern.h"
22 AROS_LH1(void, InitLayers
,
25 AROS_LHA(struct Layer_Info
*, li
, A0
),
28 struct LayersBase
*, LayersBase
, 5, Layers
)
31 Initializes the supplied Layer_Info, so it's ready for use.
32 Leaves the Layer_Info in an unlocked state.
35 li -- pointer to Layer_Info structure
40 This function is obsolete. Use NewLayerInfo() instead.
52 27-11-96 digulla automatically created from
53 layers_lib.fd and clib/layers_protos.h
55 *****************************************************************************/
61 D(bug("InitLayers(li @ $%lx)\n", li
));
63 /* init LayerInfo structure with all zeros */
64 for(i
= 0; i
< sizeof(struct Layer_Info
); i
++)
67 NewList((struct List
*)&li
->gs_Head
);
69 InitSemaphore(&li
->Lock
);
71 li
->fatten_count
= -1;
72 li
->Flags
= LIFLG_SUPPORTS_OFFSCREEN_LAYERS
;