2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: (AROS only) Graphics function ClearRegionRegion()
9 #include "graphics_intern.h"
10 #include <proto/graphics.h>
11 #include <graphics/regions.h>
12 #include "intregions.h"
14 /*****************************************************************************
17 #include <clib/graphics_protos.h>
19 AROS_LH2(BOOL
, ClearRegionRegion
,
22 AROS_LHA(struct Region
*, R1
, A0
),
23 AROS_LHA(struct Region
*, R2
, A1
),
26 struct GfxBase
*, GfxBase
, 182, Graphics
)
29 Clear the given Region region1 from the given Region region2
30 leaving the result in region2.
33 region1 - pointer to a Region structure
34 region2 - pointer to a Rectangle structure
37 FALSE if not enough memory was available, else TRUE
40 This function does not exist in AmigaOS.
47 ClearRectRegion(), AndRectRegion(), OrRectRegion(), XorRectRegion()
52 13-12-2000 stegerg implemented
54 *****************************************************************************/
60 /* If the regions don't overlap just return */
61 if (!overlap(R1
->bounds
, R2
->bounds
))
87 _TranslateRegionRectangles(R3
.RegionRectangle
, -MinX(&R3
), -MinY(&R3
));
96 } /* ClearRegionRegion */