Open GoogleCodeExporter opened 8 years ago
I know. It's rather irritating, but it happens in the bowels of Xlib. Since
wmii has taken to allowing any color format supported by xlib, it now
regenerates the color string from the resulting pixel values. Unfortunately,
libxrender does a calculation that overflows and then underflows the pixel
values causing an off-by-one error. Really, my only option is to bypass
libxrender and parse rgba pixel values myself, which I'd rather not do, but may
have to.
Original comment by maglion...@gmail.com
on 12 Jul 2010 at 1:18
Perhaps you could store written color values as-is and return them upon reads?
For example, to work-around this problem, I tried changing the failing
assertion in my unit tests to use X11 color names: "colors black white red"
but they came back as RGB tuples when I read them.
If that isn't feasible, then please document this problem as a known issue in
the man page. I agree that correcting xlib is not worthwhile and I'd rather
have you coding something you enjoy instead of managing the X11 insane asylum.
:)
Original comment by sunaku
on 12 Jul 2010 at 2:39
[deleted comment]
[deleted comment]
Original comment by sunaku
on 20 Sep 2011 at 12:08
Original issue reported on code.google.com by
sunaku
on 11 Jul 2010 at 7:27