Skip to contentSkip to conversation

fbdev: Use logo with depth of 4 or less for static pseudocolor

PATCH New Antonino A. Daplas 1 participant 1 message Apr 9, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

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.

---

 drivers/video/fbmem.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/video/fbmem.c +5 -0
index 944855b..8d8eadb 100644
@@ -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