linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cirrusfb: fix color component length for pseudocolor modes
@ 2009-03-30 22:07 Michal Januszewski
  0 siblings, 0 replies; only message in thread
From: Michal Januszewski @ 2009-03-30 22:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-fbdev-devel

cirrusfb incorrectly sets the length of the color fields to 6 bits
for PSEUDOCOLOR modes, even though 8 bits are always used per pixel.
Fix this by setting the length to 8.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
---
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index a2aa6dd..2dfe0e7 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -550,7 +550,7 @@ static int cirrusfb_check_var(struct fb_var_screeninfo *var,
 
 	case 8:
 		var->red.offset = 0;
-		var->red.length = 6;
+		var->red.length = 8;
 		var->green = var->red;
 		var->blue = var->red;
 		break;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-30 22:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-30 22:07 [PATCH] cirrusfb: fix color component length for pseudocolor modes Michal Januszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).