Annotation of researchv9/X11/src/X.V11R1/clients/uwm/StoreZap.c, revision 1.1

1.1     ! root        1: #ifndef lint
        !             2: static char *rcsid_StoreZap_c = "$Header: StoreZap.c,v 1.3 87/09/11 08:21:46 toddb Exp $";
        !             3: #endif lint
        !             4: 
        !             5: #include <X11/copyright.h>
        !             6: 
        !             7: /*
        !             8:  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
        !             9:  *
        !            10:  *                         All Rights Reserved
        !            11:  *
        !            12:  * Permission to use, copy, modify, and distribute this software and its
        !            13:  * documentation for any purpose and without fee is hereby granted,
        !            14:  * provided that the above copyright notice appear in all copies and that
        !            15:  * both that copyright notice and this permission notice appear in
        !            16:  * supporting documentation, and that the name of Digital Equipment
        !            17:  * Corporation not be used in advertising or publicity pertaining to
        !            18:  * distribution of the software without specific, written prior permission.
        !            19:  *
        !            20:  *
        !            21:  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
        !            22:  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
        !            23:  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
        !            24:  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
        !            25:  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
        !            26:  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
        !            27:  * SOFTWARE.
        !            28:  */
        !            29: 
        !            30:  
        !            31: 
        !            32: /*
        !            33:  * MODIFICATION HISTORY
        !            34:  *
        !            35:  * 000 -- M. Gancarz, DEC Ultrix Engineering Group
        !            36:  * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group,
        !            37:     Western Software Lab. Convert to X11.
        !            38:  */
        !            39: 
        !            40: #ifndef lint
        !            41: static char *sccsid = "@(#)StoreZap.c  3.8     1/24/86";
        !            42: #endif
        !            43: /*
        !            44:  *     StoreZap - This subroutine is used by the X Window Manager (xwm)
        !            45:  *     to store the vertices for the iconify, uniconify zap.
        !            46:  *
        !            47:  */
        !            48: 
        !            49: #include "uwm.h"
        !            50: 
        !            51: /*
        !            52:  * Store the vertices for the zap effect.
        !            53:  */
        !            54: int StoreZap(zap, ulx_1, uly_1, lrx_1, lry_1, ulx_2, uly_2, lrx_2, lry_2)
        !            55:     register XSegment zap[];
        !            56:     int ulx_1;         /* From window, upper left X coordinate. */
        !            57:     int uly_1;         /* From window, upper left Y coordinate. */
        !            58:     int lrx_1;         /* From window, lower right X coordinate. */
        !            59:     int lry_1;         /* From window, lower right Y coordinate. */
        !            60:     int ulx_2;         /* To window, upper left X coordinate. */
        !            61:     int uly_2;         /* To window, upper left Y coordinate. */
        !            62:     int lrx_2;         /* To window, lower right X coordinate. */
        !            63:     int lry_2;         /* To window, lower right Y coordinate. */
        !            64: {
        !            65: 
        !            66:     /*
        !            67:      * Xor in.
        !            68:      */
        !            69:     zap[0].x1 = ulx_1; zap[0].y1 = uly_1;
        !            70:     zap[0].x2 = ulx_2; zap[0].y2 = uly_2;
        !            71: 
        !            72:     zap[1].x1 = lrx_1; zap[1].y1 = uly_1;
        !            73:     zap[1].x2 = lrx_2; zap[1].y2 = uly_2;
        !            74: 
        !            75:     zap[2].x1 = lrx_1; zap[2].y1 = lry_1;
        !            76:     zap[2].x2 = lrx_2; zap[2].y2 = lry_2;
        !            77: 
        !            78:     zap[3].x1 = ulx_1; zap[3].y1 = lry_1;
        !            79:     zap[3].x2 = ulx_2; zap[3].y2 = lry_2;
        !            80: 
        !            81:     /*
        !            82:      * Xor out.
        !            83:      */
        !            84:     zap[4].x1 = ulx_1; zap[4].y1 = uly_1;
        !            85:     zap[4].x2 = ulx_2; zap[4].y2 = uly_2;
        !            86: 
        !            87:     zap[5].x1 = lrx_1; zap[5].y1 = uly_1;
        !            88:     zap[5].x2 = lrx_2; zap[5].y2 = uly_2;
        !            89: 
        !            90:     zap[6].x1 = lrx_1; zap[6].y1 = lry_1;
        !            91:     zap[6].x2 = lrx_2; zap[6].y2 = lry_2;
        !            92: 
        !            93:     zap[7].x1 = ulx_1; zap[7].y1 = lry_1;
        !            94:     zap[7].x2 = ulx_2; zap[7].y2 = lry_2;
        !            95:     /*
        !            96:      * Total number of vertices is 8.
        !            97:      */
        !            98:     return(8);
        !            99: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.