2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function OrRegionRegion()
8 #include "graphics_intern.h"
9 #include <graphics/regions.h>
10 #include "intregions.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH2(BOOL
, OrRegionRegion
,
20 AROS_LHA(struct Region
*, R1
, A0
),
21 AROS_LHA(struct Region
*, R2
, A1
),
24 struct GfxBase
*, GfxBase
, 102, Graphics
)
27 OR of one region with another region, leaving result in
31 region1 - pointer to a region structure
32 region2 - pointer to a region structure
35 TRUE if the operation was successful, else FALSE
45 AndRegionRegion(), XOrRegionRegion()
51 *****************************************************************************/
57 if (!R1
->RegionRectangle
)
60 if (!R2
->RegionRectangle
)
62 if (_LinkRegionRectangleList(R1
->RegionRectangle
, &R2
->RegionRectangle
, GfxBase
))
64 R2
->RegionRectangle
= &Chunk(R2
->RegionRectangle
)->FirstChunk
->Rects
[0].RR
;
65 R2
->bounds
= R1
->bounds
;
95 _TranslateRegionRectangles(R3
.RegionRectangle
, -MinX(&R3
), -MinY(&R3
));