(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/layers.h>
#include <>

LONG SizeLayer (dummy , l , dx , dy )

LOCATION
In LayersBase at offset 11

SYNOPSIS
LONG dummy
struct Layer * l
LONG dx
LONG dy

FUNCTION
Resizes the given layer by adding dx to its width and dy to its height. If parts of simple layers become visible those parts are added to the damage list and a refresh is triggered for those layers. If the new layer is bigger than before the additional parts are added to a damage list if the layer is a non-super- bitmap layer. Refresh is also triggered for this layer.

INPUTS
l
pointer to layer to be resized
dx
delta to be added to the width
dy
delta to be added to the height

RESULT
TRUE - layer could be resized FALSE - error occurred (out of memory)

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
20.07.1999 digulla
Update for S. Berger
18.03.1999 bergers
Uses CreateRastPort() and FreeRastPort() for RastPorts and fixes memory leak in layers library.
16.03.1999 bergers
Forgot that one.
28.02.1999 bergers
All functions use the backfill or blank hook to fill cleared or new areas.
25.02.1999 bergers
Alloc ClipRects are fetched from a pool of cliprects in the LayerInfo and when freed put into that pool.
20.02.1999 bergers
Added text to autodocs. Bugfixes. Fixed some typos in docs.
10.02.1999 bergers
Added some more comments. Superbitmapped layers work fine now.
10.02.1999 bergers
Bugfixes for superbitmapped layers.
08.02.1999 bergers
Added description, support for simple layers and bugfixes.
03.02.1999 bergers
Fixed a bug concerning superbitmapped layers.
26.01.1999 bergers
Added support for superbitmapped layers.
22.01.1999 bergers
Implementation of this function. Needs to be revised, though.
19.10.1998 ldp
Amiga Research OS
17.11.1997 ldp
Directly call MoveSizeLayer()
18.08.1997 ldp
Empty functions