- Give PCI controllers lower unit numbers than legacy controllers.
[cake.git] / rom / hyperlayers / movelayer.c
blobcc8ac3e3cc1f1cfb8ce4a4e059d82247d2595bb5
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Implementation of MoveLayer()
6 Lang: english
7 */
8 #include <aros/libcall.h>
9 #include <proto/layers.h>
10 #include <proto/exec.h>
11 #include <proto/graphics.h>
12 #include <exec/memory.h>
13 #include <graphics/rastport.h>
14 #include <graphics/clip.h>
15 #include "layers_intern.h"
17 /*****************************************************************************
19 NAME */
21 AROS_LH4(LONG, MoveLayer,
23 /* SYNOPSIS */
24 AROS_LHA(LONG , dummy, A0),
25 AROS_LHA(struct Layer *, l , A1),
26 AROS_LHA(LONG , dx , D0),
27 AROS_LHA(LONG , dy , D1),
29 /* LOCATION */
30 struct LayersBase *, LayersBase, 10, Layers)
32 /* FUNCTION
33 Move the layer to a specified position in the bitmap.
34 Parts of simple layers that become visible are added to
35 the damage list and a refresh is triggered.
37 INPUTS
38 dummy - unused
39 l - pointer to layer to be moved
40 dx - delta to add to current x position
41 dy - delta to add to current y position
43 RESULT
44 result - TRUE everyting went alright
45 FALSE an 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 return MoveSizeLayer(l,dx,dy,0,0);
67 AROS_LIBFUNC_EXIT
68 } /* MoveLayer */