Page 1 of 1

Possible Bug: wrong color ordering on OS X

Posted: Sat Sep 17, 2005 17:11
by SwiftCoder
Just wanted to find out if this is something I did wrong in the build options, or an actual bug:

On OS X the order of color components specified in XML files is RRAABBGG, instead of AARRGGBB.
It is not a very noticeable bug, because I have only found one place it causes any trouble:

In 'TaharezLook.looknfeel' the text color for Tooltips is specified as FF000000, which displays as red with an alpha of zero, i.e. it doesn't show, after a lot of bug hunting I found the order thing, so it works fine as 00FF0000, which displays correctly as black.

Is this a bug, or just a bad compile option? Is it specific to OS X?

Any thoughts would be welcome.

Thanks,

SwiftCoder

Re: Possible Bug: wrong color ordering on OS X

Posted: Mon Sep 19, 2005 09:03
by CrazyEddie
Hi

Sounds to me like some kind of endian related bug :?

Re: Possible Bug: wrong color ordering on OS X

Posted: Mon Sep 19, 2005 18:06
by renchap
yes, there is a bug somewhere with the colours
when i try to set the same color from the xml and from the code, the result on the screen is not the same, and thats often not what it should be.

i had a lot of irl problems so i stopped to work on this (and also on the new xcode project) but i will try to find where is the error soon (by trying the same things on macosx and linux)