Skip to contentSkip to conversation

sisfb: fix color component length for pseudocolor modes

PATCH In review Michal Januszewski 2 participants 2 messages Mar 30, 2009 – Apr 1, 2009 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

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

sisfb 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.

Cc Thomas Winischhofer <[email protected]>

---

drivers/video/sis/sis_main.c +1 -1
index 346d645..7e17ee9 100644
@@ -1129,7 +1129,7 @@ sisfb_bpp_to_var(struct sis_video_info *ivideo, struct fb_var_screeninfo *var)
 	switch(var->bits_per_pixel) {
 	case 8:
 		var->red.offset = var->green.offset = var->blue.offset = 0;
-		var->red.length = var->green.length = var->blue.length = 6;
+		var->red.length = var->green.length = var->blue.length = 8;
 		break;
 	case 16:
 		var->red.offset = 11;
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Tue, 31 Mar 2009 00:13:40 +0200 Michal Januszewski <[email protected]> wrote:

sisfb 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.

Cc Thomas Winischhofer <[email protected]>

---

----------------------------------------------------------------------
Twoj znajomy gwiazda filmu XXX? Wkrec go! ;)
Kliknij >>> http://link.interia.pl/f20f1