I want to add ClearType support but I got a BGR LCD display.

I tried setting the registry key
HKLM\System\GDI\ClearTypeSettings
NativeOrientation = 180

The fonts are still rendered using RGB order.
Is there any way to make ClearType font rendered in BGR order?

I also tried to use SetClearTypeBltMasks to swap Red and Blue Blt Mask in
the display driver, but the fonts are still not correctly rendered.

RE: ClearTypeSettings registry key by Elvin

Elvin
Thu Dec 01 04:16:03 CST 2005

Problem fixed.
I return the BGR Bit Masks in DrvGetMasks in the display driver. ClearType
fonts work on BGR display then.


"Elvin" wrote:

> I want to add ClearType support but I got a BGR LCD display.
>
> I tried setting the registry key
> HKLM\System\GDI\ClearTypeSettings
> NativeOrientation = 180
>
> The fonts are still rendered using RGB order.
> Is there any way to make ClearType font rendered in BGR order?
>
> I also tried to use SetClearTypeBltMasks to swap Red and Blue Blt Mask in
> the display driver, but the fonts are still not correctly rendered.