Dorothy,
Well I'm glad that it's not just me and that it must be something systemic.
I also took a look at th code and I think I have to disagree about your
analysis - unless I'm looking at the wrong thing.
I'm assuming that you are referring to the following code:
r_air_noswap = (bm.air_noswap >> 16) & 0xff;
g_air_noswap = (bm.air_noswap >> 8) & 0xff;
b_air_noswap = (bm.air_noswap) & 0xff;
I added printf statements and and found that it does do the right thing.
Here is my output:
bm.air_noswap: 2299ff
r_air_noswap: 22
g_air_noswap: 99
b_air_noswap: ff
Assuming a color spec 0x2299ff, it does break up the RGB values correctly.
...Jake
>>>>> "DR" == Dorothy Robinson <mokuren_at_aracnet.com> writes:
DR> Bubblemon is the wrong color on my Solaris box(en) too. Instead of blue sky
DR> and water, the background is red. It looks more like a bloody duck-hunting
DR> scene than an idyllic pond. I took a quick look at the code and I think it's
DR> directly fiddling the bits of the color specification, so I suspect it
DR> assumes little-endian x86 byte order and doesn't do the right thing on the
DR> big-endian sparc. See <
http://www.webopedia.com/TERM/b/big_endian.html> I'd
DR> probably learn something if I tried to fix it, but don't see when I'll ever
DR> get time.
--
Jake Colman
Principia Partners LLC Phone: (201) 209-2467
Harborside Financial Center Fax: (201) 946-0320
902 Plaza Two E-mail: colman_at_ppllc.com
Jersey City, NJ 07311 www.principiapartners.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri May 23 2003 - 13:11:17 BST