[as-devel] problem with asimagelibe and BGR_mode

Doug Alcorn (doug@lathi.net)
11 Nov 1999 21:39:17 -0500


I know, it's lame.  I have to run an X-server under Winblows.  I am
using WRQ Reflection X.  My host is a linux box with AS 1.7.142.  The
problem is that my X server uses blue-green-red mode instead of
red-green-blue mode.  Notice xdpyinfo output:

  number of visuals:    2
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits

Oddly enough, some stuff works OK and other stuff doesn't.  Wharf
still shows some xpms with the correct colors.  Pager, titlebars, root 
window, and all pngs and jpegs have their color triplets reversed.  I
know there is code in lib/ for detecting BGR_mode.  I added some noise 
that says BGR_mode is being detected by AfterStep.  I don't think
asimagelib is using this code.

I figure this is something Sasha can fix pretty easily.  It is
annoying, but not show stopping.  If it persist long enough, it will
work its way up my TODO list and I will attempt to fix it.  I have
spent about 4 hours investigating, but don't have any proposals on how 
to fix it.  I think if I spent another 4 - 8 hours I could determine
where in asimagelib to put the fix.  To actually code it would
probably take me another 4 hours.
-- 
 (__)  Doug Alcorn           
 oo /  doug@lathi.net 
 |_/   "If you don't have the source, it's not software"