[PATCH] Add support for 18bpp
Adam Jackson
ajax at nwnk.net
Fri Jul 30 07:39:22 PDT 2010
On Fri, 2010-07-30 at 10:13 +0200, Marek Vasut wrote:
> This is useful on PXA framebuffer.
>
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> ---
> hw/xfree86/common/xf86Helper.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
> index 07f9f0a..724c1a1 100644
> --- a/hw/xfree86/common/xf86Helper.c
> +++ b/hw/xfree86/common/xf86Helper.c
> @@ -776,6 +776,9 @@ xf86SetWeight(ScrnInfoPtr scrp, rgb weight, rgb mask)
> scrp->weight.red = scrp->weight.blue = 5;
> scrp->weight.green = 6;
> break;
> + case 18:
> + scrp->weight.red = scrp->weight.green = scrp->weight.blue = 6;
> + break;
> case 24:
> scrp->weight.red = scrp->weight.green = scrp->weight.blue = 8;
> break;
Technically I think I wrote this, but it's trivial, so whatever.
Reviewed-by: Adam Jackson <ajax at redhat.com>
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100730/c5b3156b/attachment.pgp>
More information about the xorg-devel
mailing list