2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: Layers Resident and initialization.
9 #include "layers_intern.h"
10 #include LC_LIBDEFS_FILE
11 #include <graphics/gfxbase.h>
12 #include <proto/exec.h>
13 #include <aros/symbolsets.h>
15 static int LayersInit(LIBBASETYPEPTR LIBBASE
)
17 InitSemaphore(&LIBBASE
->lb_MemLock
);
19 LIBBASE
->lb_ClipRectPool
= CreatePool(MEMF_CLEAR
| MEMF_PUBLIC
, sizeof(struct ClipRect
) * 50, sizeof(struct ClipRect
) * 50);
20 if (!LIBBASE
->lb_ClipRectPool
)
26 ADD2INITLIB(LayersInit
, 0);