How to switch from ARGB to BGRA colors?

Clemens Koller clemens.koller at anagramm.de
Mon Aug 20 03:13:12 PDT 2007


Hi, Daniel!

Daniel Stone schrieb:
> 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.

Thank you! I think that you are right. I'll have to check that out...
I didn't dig so deep in X freetype stuff... Not using aliased fonts was
a lazy workaround.

-- 
Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com



More information about the xorg mailing list