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(BOOL
, XorRectRegion
,
20 AROS_LHA(struct Region
*, Reg
, A0
),
21 AROS_LHA(struct Rectangle
*, Rect
, A1
),
24 struct GfxBase
*, GfxBase
, 93, 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 TRUE if the operation was succesful, else FALSE
39 All relevant data is copied, you may throw away the
40 given rectangle after calling this function
47 AndRectRegion(), OrRectRegion(), ClearRectRegion()
52 27-11-96 digulla automatically created from
53 graphics_lib.fd and clib/graphics_protos.h
54 19-01-97 mreckt intital version
56 *****************************************************************************/
61 struct RegionRectangle rr
;
66 R
.RegionRectangle
= &rr
;
69 MinX(&rr
) = MinY(&rr
) = 0;
70 MaxX(&rr
) = Rect
->MaxX
- Rect
->MinX
;
71 MaxY(&rr
) = Rect
->MaxY
- Rect
->MinY
;
73 return XorRegionRegion(&R
, Reg
);