Updates to includes for scsi & usbhardware.
[cake.git] / rom / graphics / xorrectregion.c
blob070373034c41d751ab941caeb37657adcfc8c243
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function XorRectRegion()
6 Lang: english
7 */
8 #include "graphics_intern.h"
9 #include <graphics/regions.h>
10 #include "intregions.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/graphics.h>
17 AROS_LH2(BOOL, XorRectRegion,
19 /* SYNOPSIS */
20 AROS_LHA(struct Region *, Reg, A0),
21 AROS_LHA(struct Rectangle *, Rect, A1),
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 93, Graphics)
26 /* FUNCTION
27 Exclusive-OR the given rectangle to the given
28 region
30 INPUTS
31 region - pointer to a region structure
32 rectangle - pointer to a rectangle structure
34 RESULT
35 TRUE if the operation was successful, else FALSE
36 (out of memory)
38 NOTES
39 All relevant data is copied, you may throw away the
40 given rectangle after calling this function
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 AndRectRegion(), OrRectRegion(), ClearRectRegion()
49 INTERNALS
51 HISTORY
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 *****************************************************************************/
58 AROS_LIBFUNC_INIT
60 struct Region R;
61 struct RegionRectangle rr;
63 InitRegion(&R);
65 R.bounds = *Rect;
66 R.RegionRectangle = &rr;
68 rr.Next = NULL;
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);
75 AROS_LIBFUNC_EXIT
76 } /* XorRectRegion */