Skip to content

Commit

Permalink
tridentfb: fix 224 color logo at 8 bpp
Browse files Browse the repository at this point in the history
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 <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jul 24, 2008
1 parent 13b0de4 commit a4af179
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/video/tridentfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4af179

Please sign in to comment.