Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpl-opus!hpnmdla!roger From: roger@hpnmdla.HP.COM (Roger Petersen) Newsgroups: comp.windows.x Subject: Re: Setting root in colour on HP9000/300 Message-ID: <990012@hpnmdla.HP.COM> Date: 5 Feb 91 02:54:46 GMT References: <1991Jan25.154045@axion.bt.co.uk> Organization: HP Network Measurements Div, Santa Rosa, CA Lines: 22 In comp.windows.x, ravis@axion.bt.co.uk (Richard Avis) writes: | Although I haven't got a colour workstation (boo-hoo), | I was wondering if anyone has any experience in setting the root picture | on an HP9000/300 display running X11R4 (on HP-UX) version 7, in colour, | from a gif file. | | Can it be done, if so, how did you do it? You bet. I've used both xsetrootgif and xloadimage. Make sure you have a new (2.0+?) version of xloadimage... old versions didn't release the colors they allocated when you destroyed the root image. (Programs that modify the root window are supposed to set a property on the root window, to allow future freeing of the pixmap by other applications.) Anyway, it works great. The performance under X11R4 is pretty good too. With a 1024x768 13-color simpsons.gif background, when I iconify an 80x32 (~660x550 pixel) window, the root GIF image is redrawn in about 250 to 300 milliseconds. (98549 Catseye graphics card). Newer graphics cards are faster. Roger