    ifnd GRAPHICS_LAYERS_I
GRAPHICS_LAYERS_I set 1

    ifnd EXEC_SEMAPHORES_I
       include "asm:include/exec/semaphores.i"
    endif

    ifnd EXEC_LISTS_I
       include  "asm:include/exec/lists.i"
    endif

LayerInfo_extra set 0
lie_env         set LayerInfo_extra
lie_mem         set lie_env+13*4
lie_SIZEOF      set lie_mem+LH_SIZE

LAYERSIMPLE          equ 1
LAYERSMART           equ 2
LAYERSUPER           equ 4
LAYERUPDATING        equ $10
LAYERBACKDROP        equ $40
LAYERREFRESH         equ $80
LAYER_CLIPRECTS_LOST equ $100

LMN_REGION equ -1

Layer_Info              set 0
li_top_layer            set Layer_Info
li_check_lp             set li_top_layer+4
li_obs                  set li_check_lp+4
li_FreeClipRects        set li_obs+4
li_Lock                 set li_FreeClipRects+MLH_SIZE
li_gs_Head              set li_Lock+SS_SIZE
li_long_reserved        set li_gs_Head+LH_SIZE
li_Flags                set li_long_reserved+4
li_fatten_count         set li_Flags+2
li_LockLayersCount      set li_fatten_count+1
li_LayerInfo_extra_size set li_LockLayersCount+1
li_blitbuff             set li_LayerInfo_extra_size+2
li_LayerInfo_extra      set li_blitbuff+4
li_SIZEOF               set li_LayerInfo_extra+4

NEWLAYERINFO_CALLED equ 1
ALERTLAYERSNOMEM    equ $83010000

    endif


