[PATCH] Add support for 18bpp

Marek Vasut marek.vasut at gmail.com
Fri Jul 30 01:13:39 PDT 2010


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;
-- 
1.7.1



More information about the xorg-devel mailing list