1: #ifndef lint
   2: static char *rcsid_StoreBox_c = "$Header: StoreBox.c,v 10.3 86/02/01 16:23:53 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 = "@(#)StoreBox.c	3.8	1/24/86";
  45: #endif
  46: /*
  47:  *	StoreBox - This subroutine is used by the X Window Manager (xwm)
  48:  *	to store the vertices for the resize / movement box in a vertex list.
  49:  */
  50: 
  51: #include "uwm.h"
  52: 
  53: /*
  54:  * Store the vertices for the resize movement box in a vertex list.
  55:  */
  56: int StoreBox(box, ulx, uly, lrx, lry)
  57: register Vertex box[];
  58: int ulx;            /* Upper left X coordinate. */
  59: int uly;            /* Upper left Y coordinate. */
  60: int lrx;            /* Lower right X coordinate. */
  61: int lry;            /* Lower right Y coordinate. */
  62: {
  63:     /*
  64:      * Xor in.
  65:      */
  66:     box[0].x = box[3].x = box[4].x = ulx;
  67:     box[0].y = box[1].y = box[4].y = uly;
  68: 
  69:     box[1].x = box[2].x = lrx;
  70:     box[2].y = box[3].y = lry;
  71: 
  72:     box[0].flags = VertexDontDraw;
  73: 
  74:     /*
  75:      * If we freeze the screen, don't bother to xor out.
  76:      */
  77:     if (Freeze)
  78:         return(5);
  79: 
  80:     /*
  81:      * Xor out.
  82:      */
  83:     box[7].x = box[8].x = ulx;
  84:     box[5].y = box[8].y = uly;
  85: 
  86:     box[5].x = box[6].x = lrx;
  87:     box[6].y = box[7].y = lry;
  88: 
  89:     /*
  90:      * Total number of vertices is 9.
  91:      */
  92:     return(9);
  93: }

Defined functions

Defined variables

rcsid_StoreBox_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: 843
Valid CSS Valid XHTML 1.0 Strict