From: Krzysztof Helt Date: Thu, 24 Jul 2008 04:31:06 +0000 (-0700) Subject: tridentfb: fix 224 color logo at 8 bpp X-Git-Tag: v2.6.27-rc1~579 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4af1798d768ab2f12ab623e21ad68dc8c248005;p=linux-2.6 tridentfb: fix 224 color logo at 8 bpp Fix depth setting for 8 bpp mode. The nice 224 color logo is not displayed in 8 bpp depth without this fix. Signed-off-by: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index da4b464cbd..1c3f0ba4b3 100644 --- a/drivers/video/tridentfb.c +++ b/drivers/video/tridentfb.c @@ -878,11 +878,9 @@ static int tridentfb_check_var(struct fb_var_screeninfo *var, switch (bpp) { case 8: 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 = var->red; + var->blue = var->red; break; case 16: var->red.offset = 11;