🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #24991

tiny xterm modification to use solid gray borders

#24991
From: jim
Date: Tue, 24 Feb 1987 20:05
64 lines
2401 bytes
Here are two tiny modifications for Ed Moy's xterm to allow it use solid gray
border tiles if possible.  On some tubes pattern fills are MUCH slower than
solid fills, making it very painful to bounce between windows.  Using a solid
tile that can be shared takes care of these situations. 

							Jim Fulton
							Cognition Inc.
                                                        900 Tech Park Drive
UUCP:  ...!{mit-eddie,talcott}!ci-dandelion!jim         Billerica, MA
ARPA:  jim@athena.mit.edu, fulton@eddie.mit.edu         (617) 667-4800


*** /tmp/,RCSt1006633	Tue Feb 24 12:44:24 1987
--- main.c	Tue Feb 24 12:43:19 1987
***************
*** 948,953
  		Error(ERROR_BORDER);
  	} else
  	    screen->bordertile = B_Pixmap;
  	screen->graybordertile = make_gray();
  
  	screen->foreground = B_Pixel;

--- 948,963 -----
  		Error(ERROR_BORDER);
  	} else
  	    screen->bordertile = B_Pixmap;
+ 
+ 
+ /*
+  * This is a pleasant gray that is can be shared and is much faster than
+  * drawing a tile.
+  */
+         if (DisplayCells() > 2 && XParseColor ("#ccb", &cdef) &&
+             XGetHardwareColor (&cdef)) {
+             screen->graybordertile = XMakeTile (cdef.pixel);
+         } else
  	screen->graybordertile = make_gray();
  
  	screen->foreground = B_Pixel;


*** /tmp/,RCSt1007170	Tue Feb 24 14:44:15 1987
--- button.c	Tue Feb 24 14:43:58 1987
***************
*** 702,707
  		extern FontInfo *Menu_DefaultFontInfo;
  
  		inited++;
  		Gray_Tile = screen->graybordertile;
  		InitMenu(xterm_name);
  		Menu_DefaultCursor = screen->arrow;

--- 702,710 -----
  		extern FontInfo *Menu_DefaultFontInfo;
  
  		inited++;
+ 		if (DisplayCells() > 2)
+ 		    Gray_Tile = make_gray ();
+ 		else
  		Gray_Tile = screen->graybordertile;
  		InitMenu(xterm_name);
  		Menu_DefaultCursor = screen->arrow;
Technical Details
Message-ID: <286@ci-dandelion.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!necntc!ci-dandelion!jim

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!necntc!ci-dandelion!jim
From: jim@ci-dandelion.UUCP
Newsgroups: comp.windows.x
Subject: tiny xterm modification to use solid gray borders
Message-ID: <286@ci-dandelion.UUCP>
Date: Tue, 24-Feb-87 15:05:59 EST
Article-I.D.: ci-dande.286
Posted: Tue Feb 24 15:05:59 1987
Date-Received: Fri, 27-Feb-87 04:43:39 EST
Organization: Cognition, Inc., Billerica, Ma.
Lines: 64
Keywords: xterm fills