How to switch from ARGB to BGRA colors?

Daniel Stone daniel at fooishbar.org
Mon Aug 20 02:59:08 PDT 2007


On Mon, Aug 20, 2007 at 11:54:35AM +0200, Clemens Koller wrote:
> Daniel Stone schrieb:
> >You can just use the redMask/blueMask/greenMask attributes in your video
> >driver's ScreenInit hook to specify the order.
> 
> Yeah, I fundled around with things like that in the driver. However
> when it comes to font aliasing, things broke again. The transparency pixels
> around the characters of antialiased fonts didn't still appear right.
> The alpha channel seems to be ignored here.

Hi,

This is probably just FreeType assuming your subpixel ordering is RGB
instead of BGR (subpixel layout being independent of framebuffer byte
ordering); this is configurable through Xft, et al.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070820/740fa71c/attachment.pgp>


More information about the xorg mailing list