2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function AndRegionRegion()
8 #include "graphics_intern.h"
9 #include <graphics/regions.h>
10 #include "intregions.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH2(struct Region
*, ClearRegionRegionND
,
20 AROS_LHA(struct Region
*, R1
, A0
),
21 AROS_LHA(struct Region
*, R2
, A1
),
24 struct GfxBase
*, GfxBase
, 141, Graphics
)
27 Clear the given Region region1 from the given Region region2.
30 region1 - pointer to a region structure
31 region2 - pointer to a region structure
34 The resulting region or NULL in case there's no enough free memory
43 XorRegionRegion(), OrRegionRegion()
49 *****************************************************************************/
57 !R1
->RegionRectangle
||
58 !R2
->RegionRectangle
||
59 !overlap(R1
->bounds
, R2
->bounds
)
62 return CopyRegion(R2
);
86 _TranslateRegionRectangles(R3
->RegionRectangle
, -MinX(R3
), -MinY(R3
));