fbdev: Use logo with depth of 4 or less for static pseudocolor
PATCH 1/1 fbdev: Use logo with depth of 4 or less for static pseudocolor
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 <[email protected]>
---
drivers/video/fbmem.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/video/fbmem.c +5 -0
@@ -435,6 +435,11 @@ int fb_prepare_logo(struct fb_info *info 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 :
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642