Menu

#65 Problem with Color in TrueColor mode

open
nobody
None
9
2003-12-12
2003-07-29
Anonymous
No

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

Discussion

  • Scott Johnston

    Scott Johnston - 2003-09-02

    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

     
  • Scott Johnston

    Scott Johnston - 2003-12-12
    • priority: 5 --> 9
     

Log in to post a comment.

MongoDB Logo MongoDB