INTB_VERTB100 -> INTB_TIMERTICK
[tangerine.git] / rom / hyperlayers / sizelayer.c
blobf23ba6c62997f84b4359714d6ec051e2d5691af0
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <aros/libcall.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/layers.h>
15 #include "layers_intern.h"
17 AROS_LH4(LONG, SizeLayer,
19 /* SYNOPSIS */
20 AROS_LHA(LONG , dummy, A0),
21 AROS_LHA(struct Layer *, l , A1),
22 AROS_LHA(LONG , dw , D0),
23 AROS_LHA(LONG , dh , D1),
25 /* LOCATION */
26 struct LayersBase *, LayersBase, 11, Layers)
28 /* FUNCTION
29 Resizes the given layer by adding dw to its width and dh
30 to its height.
31 If parts of simple layers become visible those parts are
32 added to the damage list and a refresh is triggered for
33 those layers.
34 If the new layer is bigger than before the additional parts
35 are added to a damage list if the layer is a non-super-
36 bitmap layer. Refresh is also triggered for this layer.
38 INPUTS
39 l - pointer to layer to be resized
40 dw - delta to be added to the width
41 dh - delta to be added to the height
43 RESULT
44 TRUE - layer could be resized
45 FALSE - error occurred (out of memory)
47 NOTES
49 EXAMPLE
51 BUGS
53 SEE ALSO
55 INTERNALS
57 HISTORY
58 27-11-96 digulla automatically created from
59 layers_lib.fd and clib/layers_protos.h
61 *****************************************************************************/
63 AROS_LIBFUNC_INIT
64 AROS_LIBBASE_EXT_DECL(struct LayersBase *,LayersBase)
66 /*
67 In this case I will create a layer behind the current layer and
68 I will try to clear as little of the layer that was above it as
69 possible.
70 */
71 return MoveSizeLayer(l,0,0,dw,dh);
74 AROS_LIBFUNC_EXIT
76 } /* SizeLayer */