move delay code into separate function.
[AROS.git] / rom / hyperlayers / unlocklayers.c
blob09718c1d28f49127c47f3c481e4d9de5052b64b6
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/libcall.h>
9 #include <graphics/layers.h>
10 #include <graphics/clip.h>
11 #include <proto/exec.h>
13 #define DEBUG 0
14 #include <aros/debug.h>
15 #undef kprintf
17 /*****************************************************************************
19 NAME */
20 #include <proto/layers.h>
21 #include "layers_intern.h"
22 #include "basicfuncs.h"
24 AROS_LH1(void, UnlockLayers,
26 /* SYNOPSIS */
27 AROS_LHA(struct Layer_Info *, li, A0),
29 /* LOCATION */
30 struct LayersBase *, LayersBase, 19, Layers)
32 /* FUNCTION
33 First unlocks all layers found in the list, then
34 unlocks the Layer_Info itself.
36 INPUTS
37 li - pointer to a Layer_Info structure
39 RESULT
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 INTERNALS
51 HISTORY
52 27-11-96 digulla automatically created from
53 layers_lib.fd and clib/layers_protos.h
55 *****************************************************************************/
57 AROS_LIBFUNC_INIT
59 struct Layer * l = li->top_layer;
61 D(bug("UnlockLayers(li @ $%lx)\n", li));
63 while (NULL != l)
65 UnlockLayer(l);
66 l = l->back;
69 UnlockLayerInfo(li);
71 AROS_LIBFUNC_EXIT
72 } /* UnlockLayers */