Skip to contentSkip to conversation

cyblafb: 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 cyblafb: fix color component length for pseudocolor modes

cyblafb 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/cyblafb.c +3 -3
index 9704b73..8e3a264 100644
@@ -615,9 +615,9 @@ static int cyblafb_check_var(struct fb_var_screeninfo *var,
 		var->red.offset = 0;
 		var->green.offset = 0;
 		var->blue.offset = 0;
-		var->red.length = 6;
-		var->green.length = 6;
-		var->blue.length = 6;
+		var->red.length = 8;
+		var->green.length = 8;
+		var->blue.length = 8;
 		break;
 	case 16:
 		var->red.offset = 11;