Fixed compatibility of output.
[AROS.git] / compiler / alib / copyregion.c
blob3c7cd0744a454e7c872eec0fdec1e90558261039
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: (AROS only) Graphics function CopyRegion()
6 Lang: english
7 */
9 #include <graphics/regions.h>
10 #include <proto/graphics.h>
12 /*****************************************************************************
14 NAME */
15 #include <proto/alib.h>
17 struct Region *CopyRegion(
19 /* SYNOPSIS */
20 struct Region *region)
22 /* FUNCTION
23 Make a copy of the given Region.
25 INPUTS
26 region - pointer to a Region structure
28 RESULT
29 the copy of the Region, or NULL if not enough memory.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 HISTORY
42 13-12-2000 stegerg implemented
44 *****************************************************************************/
46 struct Region *nreg = NewRegion();
48 if (nreg)
50 if (OrRegionRegion(region, nreg))
51 return nreg;
53 DisposeRegion(nreg);
56 return NULL;
57 } /* CopyRegion */