2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
11 #include <aros/debug.h>
14 /*****************************************************************************
17 #include <proto/layers.h>
18 #include "layers_intern.h"
19 #include "basicfuncs.h"
21 AROS_LH2(struct Hook
*, InstallLayerInfoHook
,
24 AROS_LHA(struct Layer_Info
*, li
, A0
),
25 AROS_LHA(struct Hook
*, hook
, A1
),
28 struct LayersBase
*, LayersBase
, 34, Layers
)
31 Install a backfill hook into the LayerInfo structure. This
32 backfill hook will be called to clear the areas where there
33 is no layer. It will be used for every layer.
36 li - pointer to layer info
39 If there was a backfill hook installed before it will be
40 returned. LAYERS_BACKFILL will be returned if the default
41 backfill hook was installed, LAYERS_NOBACKFILL if there
42 was nothing to be called for clearing an area.
45 The hook is not called immediately. It will be called for
46 those areas that have to be cleared when layers move away
58 27-11-96 digulla automatically created from
59 layers_lib.fd and clib/layers_protos.h
61 *****************************************************************************/
67 D(bug("InstallLayerInfoHook(li @ $%lx, hook @ $%lx)\n", li
, hook
));
71 OldHook
= li
->BlankHook
;
77 LockLayer(0, li
->check_lp
);
78 li
->check_lp
->BackFill
= hook
;
79 UnlockLayer(li
->check_lp
);
87 } /* InstallLayerInfoHook */