🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37494

Re: xlock and colors

#37494
From: Helmut Hoenig
Date: Mon, 26 Feb 1990 12:42
20 lines
1402 bytes
razdan@chanakya.oakhill.uucp (Anshuman Razdan) writes:

>Well, When I run xlock (particularly qix) it runs fine
>and since I did not not know how the patterns should look like,
>I had no idea what it was supposed to do.  It was drawing the patterns
>but would draw only limited portion of the patterns.  Seems like it could not
>find all the colors it wanted to use.

>Now if I run xcolors (progrram in contrib dir) before I run xlock - wow
>suddenly I have this beautiful pattern on the screen with hell of a lot of colors.

>I looked into the code of xcolors and cannot find any thing in particular that would initiate
>this behaviour (unless it is XtConvert in the do-color routine).

xlock seems to use the pixel-values without regarding the entries of
the colormap. Most of the entries are set to black, when x is started.
Use xshowcmap to see the color of all pixels. xcolors allocates a lot of
colors and the colormap is changed by that.

Helmut Hoenig.
Technical Details
Message-ID: <3715@incas.informatik.uni-kl.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!uklirb!incas!genesis!hoenig
References: xlock <RAZDAN.90Feb23135341@chanakya.oakhill.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!uklirb!incas!genesis!hoenig
From: hoenig@genesis.informatik.uni-kl.de (Helmut Hoenig)
Newsgroups: comp.windows.x
Subject: Re: xlock and colors
Message-ID: <3715@incas.informatik.uni-kl.de>
Date: 26 Feb 90 12:42:25 GMT
References: xlock <RAZDAN.90Feb23135341@chanakya.oakhill.uucp>
Sender: news@incas.informatik.uni-kl.de
Lines: 20