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(struct Region
*, OrRegionRegionND
,
21 AROS_LHA(struct Region
*, R1
, A0
),
22 AROS_LHA(struct Region
*, R2
, A1
),
25 struct GfxBase
*, GfxBase
, 189, Graphics
)
28 OR of one region with another region.
31 region1 - pointer to a region structure
32 region2 - pointer to a region structure
35 The resulting region or NULL in case there's no enough free memory
44 XorRegionRegion(), OrRegionRegion()
50 *****************************************************************************/
54 struct Region
*R3
= NewRegion();
76 _TranslateRegionRectangles(R3
->RegionRectangle
, -MinX(R3
), -MinY(R3
));