54
54
/* $Xorg: miregion.c,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */
56
56
/* The panoramix components contained the following notice */
57
/****************************************************************
59
* Copyright (c) Digital Equipment Corporation, 1991, 1997 *
61
* All Rights Reserved. Unpublished rights reserved under *
62
* the copyright laws of the United States. *
64
* The software contained on this media is proprietary to *
65
* and embodies the confidential technology of Digital *
66
* Equipment Corporation. Possession, use, duplication or *
67
* dissemination of the software and media is authorized only *
68
* pursuant to a valid written license from Digital Equipment *
71
* RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure *
72
* by the U.S. Government is subject to restrictions as set *
73
* forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, *
74
* or in FAR 52.227-19, as applicable. *
76
*****************************************************************/
57
/*****************************************************************
59
Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
61
Permission is hereby granted, free of charge, to any person obtaining a copy
62
of this software and associated documentation files (the "Software"), to deal
63
in the Software without restriction, including without limitation the rights
64
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
65
copies of the Software.
67
The above copyright notice and this permission notice shall be included in
68
all copies or substantial portions of the Software.
70
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
71
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
72
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
73
DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
74
BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
75
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
76
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
78
Except as contained in this notice, the name of Digital Equipment Corporation
79
shall not be used in advertising or otherwise to promote the sale, use or other
80
dealings in this Software without prior written authorization from Digital
81
Equipment Corporation.
83
******************************************************************/
2261
2268
/* Add those rectangles in region 1 that aren't in region 2,
2262
do yucky substraction for overlaps, and
2269
do yucky subtraction for overlaps, and
2263
2270
just throw away rectangles in region 2 that aren't in region 1 */
2264
2271
if (!miRegionOp(regD, regM, regS, miSubtractO, TRUE, FALSE, &overlap))