2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: (AROS only) Graphics function CopyRegion()
8 #include "graphics_intern.h"
9 #include <graphics/regions.h>
10 #include "intregions.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH1(struct Region
*, CopyRegion
,
20 AROS_LHA(struct Region
*, region
, A0
),
23 struct GfxBase
*, GfxBase
, 188, Graphics
)
26 Make a copy of the given Region.
29 region - pointer to a Region structure
32 the copy of the Region, or NULL if not enough memory.
35 This function does not exist in AmigaOS.
42 NewRegion(), DisposeRegion()
47 13-12-2000 stegerg implemented
49 *****************************************************************************/
55 if ((nreg
= NewRegion()))
57 if (region
->RegionRectangle
)
59 struct RegionRectangle
*new = NULL
;
61 nreg
->bounds
= region
->bounds
;
63 if (!_LinkRegionRectangleList(region
->RegionRectangle
, &new, GfxBase
))
69 nreg
->RegionRectangle
= &Chunk(new)->FirstChunk
->Rects
[0].RR
;