wip layout correction.
[AROS.git] / rom / hyperlayers / sizelayer.c
blobff2936fd0d464391537e72ecb9388dec5dc78d07
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>
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
65 /*
66 In this case I will create a layer behind the current layer and
67 I will try to clear as little of the layer that was above it as
68 possible.
69 */
70 return MoveSizeLayer(l,0,0,dw,dh);
73 AROS_LIBFUNC_EXIT
75 } /* SizeLayer */