2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Graphics function AndRegionRegion()
9 #include "graphics_intern.h"
10 #include <graphics/regions.h>
11 #include "intregions.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH2(BOOL
, AreRegionsEqual
,
21 AROS_LHA(struct Region
*, R1
, A0
),
22 AROS_LHA(struct Region
*, R2
, A1
),
25 struct GfxBase
*, GfxBase
, 183, Graphics
)
31 region1 - pointer to a region structure
32 region2 - pointer to a region structure
35 TRUE if the regions are equal, FALSE otherwise.
44 XorRegionRegion(), OrRegionRegion()
50 *****************************************************************************/
54 struct RegionRectangle
*rr1
, *rr2
;
56 if (!_AreRectsEqual(Bounds(R1
), Bounds(R2
)))
61 rr1
= R1
->RegionRectangle
, rr2
= R2
->RegionRectangle
;
62 rr1
&& rr2
&& _AreRectsEqual(Bounds(rr1
), Bounds(rr2
));
63 rr1
= rr1
->Next
, rr2
= rr2
->Next