~henrix/ubuntu/precise/open-vm-dkms/lp-1416003

« back to all changes in this revision

Viewing changes to lib/region/region.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
/* $Xorg: miregion.c,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */
55
55
 
56
56
/* The panoramix components contained the following notice */
57
 
/****************************************************************
58
 
*                                                               *
59
 
*    Copyright (c) Digital Equipment Corporation, 1991, 1997    *
60
 
*                                                               *
61
 
*   All Rights Reserved.  Unpublished rights  reserved  under   *
62
 
*   the copyright laws of the United States.                    *
63
 
*                                                               *
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  *
69
 
*   Corporation.                                                *
70
 
*                                                               *
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.                       *
75
 
*                                                               *
76
 
*****************************************************************/
 
57
/*****************************************************************
 
58
 
 
59
Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
 
60
 
 
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.
 
66
 
 
67
The above copyright notice and this permission notice shall be included in
 
68
all copies or substantial portions of the Software.
 
69
 
 
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.
 
77
 
 
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.
 
82
 
 
83
******************************************************************/
77
84
 
78
85
/*
79
86
 * miregion.c --
2259
2266
    }
2260
2267
 
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))
2265
2272
        return FALSE;
2319
2326
    }
2320
2327
 
2321
2328
    /* Add those rectangles in region 1 that aren't in region 2,
2322
 
       do yucky substraction for overlaps, and
 
2329
       do yucky subtraction for overlaps, and
2323
2330
       just throw away rectangles in region 2 that aren't in region 1 */
2324
2331
    invReg.extents = *invRect;
2325
2332
    invReg.data = (RegDataPtr)NULL;