2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function XorRectRegion()
8 #include "graphics_intern.h"
9 #include <graphics/regions.h>
10 #include "intregions.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH2(struct Region
*, XorRectRegionND
,
20 AROS_LHA(struct Region
*, Reg
, A0
),
21 AROS_LHA(struct Rectangle
*, Rect
, A1
),
24 struct GfxBase
*, GfxBase
, 152, Graphics
)
27 Exclusive-OR the given rectangle to the given
31 region - pointer to a region structure
32 rectangle - pointer to a rectangle structure
35 The resulting region or NULL in case there's no enough free memory
38 All relevant data is copied, you may throw away the
39 given rectangle after calling this function
46 AndRectRegion(), OrRectRegion(), ClearRectRegion()
51 27-11-96 digulla automatically created from
52 graphics_lib.fd and clib/graphics_protos.h
53 19-01-97 mreckt intital version
55 *****************************************************************************/
60 struct RegionRectangle rr
;
65 R
.RegionRectangle
= &rr
;
68 MinX(&rr
) = MinY(&rr
) = 0;
69 MaxX(&rr
) = Rect
->MaxX
- Rect
->MinX
;
70 MaxY(&rr
) = Rect
->MaxY
- Rect
->MinY
;
72 return XorRegionRegionND(&R
, Reg
);