2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Graphics function OrRegionRegion()
9 #include <graphics/regions.h>
11 #include "graphics_intern.h"
12 #include "intregions.h"
14 /*****************************************************************************
17 #include <proto/graphics.h>
19 AROS_LH2(BOOL
, OrRegionRegion
,
22 AROS_LHA(struct Region
*, R1
, A0
),
23 AROS_LHA(struct Region
*, R2
, A1
),
26 struct GfxBase
*, GfxBase
, 102, Graphics
)
29 OR of one region with another region, leaving result in
33 region1 - pointer to a region structure
34 region2 - pointer to a region structure
37 TRUE if the operation was successful, else FALSE
47 AndRegionRegion(), XOrRegionRegion()
53 *****************************************************************************/
59 if (!R1
->RegionRectangle
)
61 /* First region is empty, second left intact */
65 if (!R2
->RegionRectangle
)
67 /* Second region was empty. Make a plain copy. */
68 return _CopyRegionRectangles(R1
, R2
, GfxBase
);
71 /* Do the complete slow thing here */
95 _TranslateRegionRectangles(R3
.RegionRectangle
, -MinX(&R3
), -MinY(&R3
));