summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-09-27 17:06:46 -0400
committerAdam Jackson <ajax@redhat.com>2010-09-29 14:08:39 -0400
commit560e4254997df26b6abaa93ca2f59bcf7f68d551 (patch)
tree169fe4d3b1baf182e8c9a7b27a9c5fbf3b53d055 /hw
parent5ae0c0cdb29dd35e0c10e6429e0df59f064a5c73 (diff)
xfree86: Add 18bpp support
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 9df4fb0adf66fb82f0c007897d79af0f54a6dad9)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/common/xf86Helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c
index 07f9f0a52..724c1a1fd 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;