2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function OrRectRegion()
8 #include <exec/types.h>
9 #include <exec/memory.h>
10 #include <graphics/regions.h>
11 #include <proto/exec.h>
12 #include "intregions.h"
13 #include "graphics_intern.h"
15 /*****************************************************************************
18 #include <proto/graphics.h>
20 AROS_LH2(BOOL
, OrRectRegion
,
23 AROS_LHA(struct Region
*, Reg
, A0
),
24 AROS_LHA(struct Rectangle
*, Rect
, A1
),
27 struct GfxBase
*, GfxBase
, 85, Graphics
)
30 Add the given Rectangle to the given Region (if not
34 region - pointer to Region structure
35 rectangle - pointer to Rectangle structure
38 TRUE if the operation was successful, else FALSE
42 All relevant data is copied, you may throw away the
43 given rectangle after calling this function
50 AndRectRegion(), XorRectRegion(), ClearRectRegion()
55 27-11-96 digulla automatically created from
56 graphics_lib.fd and clib/graphics_protos.h
57 16-01-97 mreckt initial version
59 *****************************************************************************/
64 struct RegionRectangle rr
;
93 _TranslateRegionRectangles(Res
.RegionRectangle
, -MinX(&Res
), -MinY(&Res
));