Problem with Color in TrueColor mode
Brought to you by:
johnston
It's possible that the color are incorrect (blue is red
and red is blue) in a truecolor display?
in the file XWINDOWS.C of IV-X11
in the function WindowVisual::find_color(.....)
you have
if(bytesize_
{
xc.pixel = ((red & 0xff00) << 8) |
(green & 0xff00) |
((red & 0xff00) >> 8)
}
BUT if i change the >> for << and vice versa
ex.
if(bytesize_
{
xc.pixel = ((red & 0xff00) >>8) |
(green & 0xff00) |
((red & 0xff00) << 8)
}
everycolor are correct. Perhaps this is just a little
mistake. But i don't know if on linux/Unix this
correction is correct because my xserver is on
Windows : Exceed of Hummingbird
Vincent Choiničre
Logged In: YES
user_id=406
Funny, that bytesize_ clause was added specifically for an
Windows X server, albeit the free one, not Exceed. I guess they
have a different RGB ordering. This information is provided in the
visual, but if you look at this code you'll see it is ignored. To fix
the problem would require changing this code to pay attention to
the masks that are part of the visual.
I would have responded directly, but you left the bug without
leaving an e-mail and without logging in.
Scott Johnston