1: #ifndef lint
   2: static char *rcsid_StoreZap_c = "$Header: StoreZap.c,v 10.3 86/02/01 16:24:04 tony Rel $";
   3: #endif	lint
   4: 
   5: /************************************************************************
   6:  *									*
   7:  *			Copyright (c) 1986 by				*
   8:  *		Digital Equipment Corporation, Maynard, MA		*
   9:  *		         All Rights Reserved.				*
  10:  *									*
  11:  *	Permission to use, copy, modify, and distribute this software	*
  12:  *	and its documentation is hereby granted only to licensees of 	*
  13:  *	The Regents of the University of California pursuant to their	*
  14:  *	license agreement for the Berkeley Software Distribution 	*
  15:  *	provided that the following appears on all copies.		*
  16:  *									*
  17:  *            "LICENSED FROM DIGITAL EQUIPMENT CORPORATION		*
  18:  *                      COPYRIGHT (C) 1986				*
  19:  *                 DIGITAL EQUIPMENT CORPORATION			*
  20:  *                         MAYNARD, MA					*
  21:  *                     ALL RIGHTS RESERVED.				*
  22:  *									*
  23:  *      THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT	*
  24:  *	NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL	*
  25:  *	EQUIPMENT CORPORATION.  DIGITAL MAKES NO REPRESENTATIONS	*
  26:  *	ABOUT SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. IT IS	*
  27:  *	SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.		*
  28:  *									*
  29:  * 	IF THE UNIVERSITY OF CALIFORNIA OR ITS LICENSEES MODIFY 	*
  30:  *	THE SOFTWARE IN A MANNER CREATING DERIVATIVE COPYRIGHT 		*
  31:  *	RIGHTS APPROPRIATE COPYRIGHT LEGENDS MAY BE PLACED ON THE	*
  32:  *	DERIVATIVE WORK IN ADDITION TO THAT SET FORTH ABOVE."		*
  33:  *									*
  34:  ************************************************************************/
  35: 
  36: 
  37: /*
  38:  * MODIFICATION HISTORY
  39:  *
  40:  * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  41:  */
  42: 
  43: #ifndef lint
  44: static char *sccsid = "@(#)StoreZap.c	3.8	1/24/86";
  45: #endif
  46: /*
  47:  *	StoreZap - This subroutine is used by the X Window Manager (xwm)
  48:  *	to store the vertices for the iconify, uniconify zap.
  49:  *
  50:  */
  51: 
  52: #include "uwm.h"
  53: 
  54: /*
  55:  * Store the vertices for the zap effect.
  56:  */
  57: int StoreZap(zap, ulx_1, uly_1, lrx_1, lry_1, ulx_2, uly_2, lrx_2, lry_2)
  58:     register Vertex zap[];
  59:     int ulx_1;      /* From window, upper left X coordinate. */
  60:     int uly_1;      /* From window, upper left Y coordinate. */
  61:     int lrx_1;      /* From window, lower right X coordinate. */
  62:     int lry_1;      /* From window, lower right Y coordinate. */
  63:     int ulx_2;      /* To window, upper left X coordinate. */
  64:     int uly_2;      /* To window, upper left Y coordinate. */
  65:     int lrx_2;      /* To window, lower right X coordinate. */
  66:     int lry_2;      /* To window, lower right Y coordinate. */
  67: {
  68: 
  69:     /*
  70:      * Xor in.
  71:      */
  72:     zap[0].x = ulx_1;   zap[0].y = uly_1;   zap[0].flags = VertexDontDraw;
  73:     zap[1].x = ulx_2;   zap[1].y = uly_2;
  74:     zap[2].x = lrx_1;   zap[2].y = uly_1;   zap[2].flags = VertexDontDraw;
  75:     zap[3].x = lrx_2;   zap[3].y = uly_2;
  76:     zap[4].x = lrx_1;   zap[4].y = lry_1;   zap[4].flags = VertexDontDraw;
  77:     zap[5].x = lrx_2;   zap[5].y = lry_2;
  78:     zap[6].x = ulx_1;   zap[6].y = lry_1;   zap[6].flags = VertexDontDraw;
  79:     zap[7].x = ulx_2;   zap[7].y = lry_2;
  80: 
  81:     /*
  82:      * Xor out.
  83:      */
  84:     zap[8].x = ulx_1;   zap[8].y = uly_1;   zap[8].flags = VertexDontDraw;
  85:     zap[9].x = ulx_2;   zap[9].y = uly_2;
  86:     zap[10].x = lrx_1;  zap[10].y = uly_1;  zap[10].flags = VertexDontDraw;
  87:     zap[11].x = lrx_2;  zap[11].y = uly_2;
  88:     zap[12].x = lrx_1;  zap[12].y = lry_1;  zap[12].flags = VertexDontDraw;
  89:     zap[13].x = lrx_2;  zap[13].y = lry_2;
  90:     zap[14].x = ulx_1;  zap[14].y = lry_1;  zap[14].flags = VertexDontDraw;
  91:     zap[15].x = ulx_2;  zap[15].y = lry_2;
  92: 
  93:     /*
  94:      * Total number of vertices is 16.
  95:      */
  96:     return(16);
  97: }

Defined functions

Defined variables

rcsid_StoreZap_c defined in line 2; never used
sccsid defined in line 44; never used
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 763
Valid CSS Valid XHTML 1.0 Strict