2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: (AROS only) Graphics function ClearRegionRegion()
8 #include "graphics_intern.h"
9 #include <proto/graphics.h>
10 #include <graphics/regions.h>
11 #include "intregions.h"
13 /*****************************************************************************
16 #include <clib/graphics_protos.h>
18 AROS_LH2(BOOL
, ClearRegionRegion
,
21 AROS_LHA(struct Region
*, R1
, A0
),
22 AROS_LHA(struct Region
*, R2
, A1
),
25 struct GfxBase
*, GfxBase
, 187, Graphics
)
28 Clear the given Region region1 from the given Region region2
29 leaving the result in region2.
32 region1 - pointer to a Region structure
33 region2 - pointer to a Rectangle structure
36 FALSE if not enough memory was available, else TRUE
39 This function does not exist in AmigaOS.
46 ClearRectRegion(), AndRectRegion(), OrRectRegion(), XorRectRegion()
51 13-12-2000 stegerg implemented
53 *****************************************************************************/
59 /* If the regions don't overlap just return */
60 if (!overlap(R1
->bounds
, R2
->bounds
))
86 _TranslateRegionRectangles(R3
.RegionRectangle
, -MinX(&R3
), -MinY(&R3
));
95 } /* ClearRegionRegion */