gdykes@batcomputer.tn.cornell.edu (Gene Dykes) (03/02/90)
xterm -bg Transparent This used to work in X11R3. Under X11R4 it still works for Turbo SRX, but not for SRX. Apparently, XAllocNamedColor returns a black pixel for "transparent". XAllocColor will return a transparent pixel, but we can't go and hack every application. Is this my problem, X11R4 problem, or HP server problem? Is there a fix for this? Thanks for any hints. -- gene -- Gene Dykes, gdykes@tcgould.tn.cornell.edu
raveling@isi.edu (Paul Raveling) (03/03/90)
In article <9817@batcomputer.tn.cornell.edu>, gdykes@batcomputer.tn.cornell.edu (Gene Dykes) writes: > > xterm -bg Transparent > > This used to work in X11R3. > Under X11R4 it still works for Turbo SRX, but not for SRX. > > Apparently, XAllocNamedColor returns a black pixel for "transparent". I believe the correct definition of transparent was RGB = (1 1 1), which looks like black. If the call fails though you'll probably wind up using true black as a default. > Is this my problem, X11R4 problem, or HP server problem? > Is there a fix for this? If you're using the MIT standard color name database, it doesn't include "transparent". MIT takes the position that it's inappropriate to supply "transparent" for everyone, since the variant HP uses either (a) doesn't apply or (b) may conflict with usage by other vendors. To supply this in the X11R4 color database, edit $(TOP)/mit/rgb/rgb.txt to include a line looking roughly like: 1 1 1 transparent Then do a "make" and a "make install" in that directory. That'll assure that you have "transparent" defined. I have no idea though whether there may be other problems involving the display server's interpretation of it. ---------------- Paul Raveling Raveling@isi.edu
evgabb@sdrc.UUCP (Rob Gabbard) (03/05/90)
In article <12150@venera.isi.edu>, raveling@isi.edu (Paul Raveling) writes: > I believe the correct definition of transparent was RGB = (1 1 1), Nope, its 0 0 1. -- ________ _________ _______ ________ / _______| | ____ \ | ___ \ / _______| Rob Gabbard (uunet!sdrc!evgabb) | |______ | | \ \ | | \ | | / Technical Development Engineer \_______ \ | | | | | |___/ / | | Structural Dynamics Research Corp. ______| | | |____/ / | ____ \ | \_______ #include <std/disclaimer.h> |________/ |________/ |_| |_| \________|
C/os, X11 R4 xterm, and /dev/tty1 R4 xterm, and /dev/tty (03/06/90)
Gene Dykes writes: > > xterm -bg Transparent > > This used to work in X11R3. > Under X11R4 it still works for Turbo SRX, but not for SRX. This is an SRX server bug, but as Paul Raveling correctly points out, you do also need an rgb.txt file which contains an entry for transparent. The correct R-G-B values for "transparent" are actually 0-0-1, not 1-1-1. We will provide a patched R4 server RSN. Harry Phinney harry@hp-pcd.cv.hp.com PS: Yes, I've gotten in touch with rmacfarq@computer-science.strathclyde.ac.uk
lang@hpfcso.HP.COM (John J. Lang) (03/06/90)
> > Apparently, XAllocNamedColor returns a black pixel for "transparent". > I believe the correct definition of transparent was RGB = (1 1 1), Transparent is RGB = ( 0 0 1 ). John Lang lang%hpfcla@hplabs (or sumthin like that)
evgabb@sdrc.UUCP (Rob Gabbard) (03/06/90)
In article <101950100@hpcvlx.cv.hp.com>, C/os, X11 R4 xterm, and /dev/tty1 R4 xterm, and /dev/tty writes: > 0-0-1, not 1-1-1. We will provide a patched R4 server RSN. An R4 server or R3 ? The 7.0 server is R3. -- ________ _________ _______ ________ / _______| | ____ \ | ___ \ / _______| Rob Gabbard (uunet!sdrc!evgabb) | |______ | | \ \ | | \ | | / Technical Development Engineer \_______ \ | | | | | |___/ / | | Structural Dynamics Research Corp. ______| | | |____/ / | ____ \ | \_______ #include <std/disclaimer.h> |________/ |________/ |_| |_| \________|
nder DOS (03/08/90)
> An R4 server or R3 ? The 7.0 server is R3. > Rob Gabbard (uunet!sdrc!evgabb) | |______ | | \ \ | | \ | | / We'll supply both, with a patched 7.0 server being available before a patched R4 server. I expect to be done with the 7.0 patches this week, so give it some time to filter through the support organization, and you should be able to get it sometime after the 15th, I'd guess. Harry Phinney harry@hp-pcd.cv.hp.com