Skip to contentSkip to conversation

cirrusfb: fix color component length for pseudocolor modes

PATCH New Michal Januszewski 1 participant 1 message Mar 30, 2009 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cirrusfb: fix color component length for pseudocolor modes

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.

---

drivers/video/cirrusfb.c +1 -1
index a2aa6dd..2dfe0e7 100644
@@ -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;