[PATCH] fbdev: Static pseudocolor with depth less than 4 does exist
A static pseudocolor visual with depth less than 4 does exist, so let's not accidentally upscale the depth with this configuration Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ae6d321876
commit
0c683dbfc0
@ -433,7 +433,7 @@ int fb_prepare_logo(struct fb_info *info, int rotate)
|
|||||||
depth = info->var.green.length;
|
depth = info->var.green.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) {
|
if (info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR && depth > 4) {
|
||||||
/* assume console colormap */
|
/* assume console colormap */
|
||||||
depth = 4;
|
depth = 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user