[maemo-developers] [maemo-developers] running af at 24-bit depth

From: Aleksandr Koltsoff czr770 at iohazard.tts.fi
Date: Mon May 30 15:15:48 EEST 2005
Hello

Most of you might know that running af-sb-init.sh will lead to funny screens 
when your X server is at 24bpp.

The component that provides images to applications (sapwood-server), has a 
hardcoded value in it that is set to 16. Since the process runs without a 
Gdk-context, it's not easy to detect the depth directly (I'm guessing here 
though).

I've modified the server so that the depth can be controlled via an 
environmental variable called SAPWOOD_DEPTH and if it's set to 24, then 
sapwood will use that.

After this, af runs ok on 24bpp.

I put a compiled (sbox/i386) debs, sources and a README (renamed to usage.txt 
because of ISP) with instructions here: 
http://koltsoff.fi/770/sapwood-16_24_bit/

And yes I know it's a hack, and yes I know better ways of doing this, but 
again, it's just a hack. I do not propose including that into the SDK, but 
wouldn't oppose it either.

ak.

More information about the maemo-developers mailing list