diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2008-07-24 00:31:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:36 -0400 |
commit | a4af1798d768ab2f12ab623e21ad68dc8c248005 (patch) | |
tree | b919adea8ba228d4e4e1ab3658d964c325faf8ff /drivers/video | |
parent | 13b0de49f52ec8638b3e3e59192a959b35214d9e (diff) |
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 <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tridentfb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c index da4b464cbdba..1c3f0ba4b33a 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, | |||
878 | switch (bpp) { | 878 | switch (bpp) { |
879 | case 8: | 879 | case 8: |
880 | var->red.offset = 0; | 880 | var->red.offset = 0; |
881 | var->green.offset = 0; | 881 | var->red.length = 8; |
882 | var->blue.offset = 0; | 882 | var->green = var->red; |
883 | var->red.length = 6; | 883 | var->blue = var->red; |
884 | var->green.length = 6; | ||
885 | var->blue.length = 6; | ||
886 | break; | 884 | break; |
887 | case 16: | 885 | case 16: |
888 | var->red.offset = 11; | 886 | var->red.offset = 11; |