Skip to content

Commit

Permalink
[PATCH] fbdev: Use logo with depth of 4 or less for static pseudocolor
Browse files Browse the repository at this point in the history
Since the visual STATIC_PSEUDOCOLOR has a read-only colormap, use logos
with 16 colors only since these logos use the console palette.  This has a
higher likelihood that the logo will display correctly.

Signed-of-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Apr 11, 2006
1 parent 89ec4c2 commit 397eeab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/video/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ int fb_prepare_logo(struct fb_info *info, int rotate)
depth = info->var.green.length;
}

if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) {
/* assume console colormap */
depth = 4;
}

if (depth >= 8) {
switch (info->fix.visual) {
case FB_VISUAL_TRUECOLOR:
Expand Down

0 comments on commit 397eeab

Please sign in to comment.