🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #25530

diffs to xsetroot for larger tiles...

#25530
From: dcmartin
Date: Tue, 05 May 1987 22:21
34 lines
1719 bytes
I don't know how many people are using large bitmaps as their backgrounds
for X, but a simple change to xsetroot allows bitmaps larger than 16x16 to
be used as the root window background tile.

(This makes the use of the program xback(1) obsolete on Suns, but you will
still need it for uVaxen as they don't grok bitmaps as tiles > 16x16)

dcm
--------
280c280
< 	    Error("Invaild mask Bitmap size");
---
> 	    Error("Invalid mask Bitmap size");
292c292
< 	    Error("Invaild cursor Bitmap size");
---
> 	    Error("Invalid cursor Bitmap size");
384,387c384,394
< 	if (status == 0) Error ("Unable to open Bitmap file");
< 	else if (status < 0) Error("Unable to parse Bitmap file");
< 	else if ((width != BITMAP_SIZE) || (height != BITMAP_SIZE))
< 	    Error("Invaild Bitmap size");
---
> 	if (status == 0)
> 	    Error ("Unable to open Bitmap file");
> 	else if (status < 0) 
> 	    Error("Unable to parse Bitmap file");
> 	else {
> 	    int		rwidth, rheight;
> 
> 	    XQueryTileShape(width, height, &rwidth, &rheight);
> 	    if ((width != rwidth) || (height != rheight))
> 		Error("Invalid Bitmap size");
> 	}
Technical Details
Message-ID: <8705052221.AA19322@postgres>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!lll-lcc!ames!ucbcad!ucbvax!postgres.mit.EDU!dcmartin

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!watmath!clyde!rutgers!lll-lcc!ames!ucbcad!ucbvax!postgres.mit.EDU!dcmartin
From: dcmartin@postgres.mit.EDU.UUCP
Newsgroups: comp.windows.x
Subject: diffs to xsetroot for larger tiles...
Message-ID: <8705052221.AA19322@postgres>
Date: Tue, 5-May-87 18:21:18 EDT
Article-I.D.: postgres.8705052221.AA19322
Posted: Tue May  5 18:21:18 1987
Date-Received: Thu, 7-May-87 02:48:16 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 34