2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function AndRectRegion()
8 #include "graphics_intern.h"
9 #include <graphics/regions.h>
10 #include <proto/exec.h>
11 #include <clib/macros.h>
12 #include "intregions.h"
14 /*****************************************************************************
17 #include <proto/graphics.h>
19 AROS_LH2(struct Region
*, OrRectRegionND
,
22 AROS_LHA(struct Region
*, Reg
, A0
),
23 AROS_LHA(struct Rectangle
*, Rect
, A1
),
26 struct GfxBase
*, GfxBase
, 123, Graphics
)
29 Add the given Rectangle to the given Region (if not
33 region - pointer to Region structure
34 rectangle - pointer to Rectangle structure
37 The resulting region or NULL in case there's no enough free memory
44 AndRegionRegion(), OrRectRegion(), XorRectRegion(), ClearRectRegion()
50 27-11-96 digulla automatically created from
51 graphics_lib.fd and clib/graphics_protos.h
52 16-01-97 mreckt initial version
54 *****************************************************************************/
58 struct Region
*Res
= NewRegion();
63 struct RegionRectangle rr
;
80 &Res
->RegionRectangle
,
87 _TranslateRegionRectangles(Res
->RegionRectangle
, -MinX(Res
), -MinY(Res
));