🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #25133

Screen Blanking for QVSS during screen saver

#25133
From: jmsellens
Date: Mon, 16 Feb 1987 00:22
37 lines
2088 bytes
I prefer to have my displays completely blanked when X is doing screen
saving - this is what the -v flag is supposed to accomplish.  However,
the V10R4 supplied libqvss does not do screen blanking itself, so that
the SetVideo calls in X/main.c don't succeed, so the screen saver routine
does that random pattern on the screen instead.  Rather than doing it 
properly, I put this cheap hack into X/main.c to do it for me.  It's
not elegant, but it has the desired effect at minimal cost.

John Sellens -- Logic Programming and Artificial Intelligence Group

{decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdragon!jmsellens
jmsellens@dragon.waterloo.{edu,CDN} jsellens@watmta.BITNET
jmsellens%dragon@waterloo.csnet

"Of all the stupid things I could have thought, this was the worst"
- Joe Jackson


From X/main.c at line 580: (the only change is using GXclear rather than
CXcopy)

		    StoreColors (2, randomcolors);
		}
#ifdef waterloo
		/* if we wanted the screen blanked, and were able to save the
		   screen, then let's try tiling it with something all black? */
		if ( blank_video && save!=NULL ) {
		    TileFill (rootwindow->tile,
			  (int) (tv.tv_sec >> 4) & 0xf, (int) tv.tv_sec & 0xf,
			  (BITMAP *) NULL, 0, 0, device.width, device.height,
			  &rootwindow->clip, 1, GXclear, -1);
		} else
#endif
		TileFill (rootwindow->tile,
			  (int) (tv.tv_sec >> 4) & 0xf, (int) tv.tv_sec & 0xf,
			  (BITMAP *) NULL, 0, 0, device.width, device.height,
			  &rootwindow->clip, 1, GXcopy, -1);
Technical Details
Message-ID: <8702160022.AA22294@watdragon.uucp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!ames!ucbcad!ucbvax!watdragon.waterloo.edu!jmsellens

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!ames!ucbcad!ucbvax!watdragon.waterloo.edu!jmsellens
From: jmsellens@watdragon.waterloo.edu.UUCP
Newsgroups: comp.windows.x
Subject: Screen Blanking for QVSS during screen saver
Message-ID: <8702160022.AA22294@watdragon.uucp>
Date: Sun, 15-Feb-87 19:22:42 EST
Article-I.D.: watdrago.8702160022.AA22294
Posted: Sun Feb 15 19:22:42 1987
Date-Received: Mon, 16-Feb-87 03:58:29 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 37