linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist
@ 2006-04-29  0:41 Antonino A. Daplas
  2006-04-29  7:38 ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: Antonino A. Daplas @ 2006-04-29  0:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Fbdev development list

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>
---

 drivers/video/fbmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 1cb9acf..19cb4c5 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -432,7 +432,7 @@ int fb_prepare_logo(struct fb_info *info
 			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 */
 		depth = 4;
 	}



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-04-29 21:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29  0:41 [PATCH 10/12] fbdev: Static pseudocolor with depth less than 4 does exist Antonino A. Daplas
2006-04-29  7:38 ` Geert Uytterhoeven
2006-04-29 12:34   ` Antonino A. Daplas
2006-04-29 18:28     ` Geert Uytterhoeven
2006-04-29 15:50       ` Brad Boyer
2006-04-29 21:42       ` Antonino A. Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).