[comp.windows.x] XAllocNamedColor vs. XParseColor

pds@quintus (Peter Schachte) (02/24/89)

What's the difference between calling XAllocNamedColor and calling
XParseColor and feeding its output ot XAllocColor?  I know XParseColor
is a little smarter, but is it guaranteed to be compatible?  Can it
EVER get the wrong answer on input XAllocNamedColor works on?

TIA,
-Peter Schachte
pds@quintus.uucp
..!sun!quintus!pds

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (02/24/89)

    What's the difference between calling XAllocNamedColor and calling
    XParseColor and feeding its output ot XAllocColor?

The only real difference is that XParseColor understands "#" notation.
Other than that, the results should be the same.