Path: 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 Sender: news@incas.informatik.uni-kl.de Lines: 20 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.