Skip to contentSkip to conversation

fbsplash - fbdev updates

PATCH In review Michal Januszewski 2 participants 2 messages Mar 8, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 fbsplash - fbdev updates

Fbcmap.c updates.

---

drivers/video/fbcmap.c +8 -0
diff -Nru a/drivers/video/fbcmap.c b/drivers/video/fbcmap.c
@@ -16,6 +16,7 @@
 #include <linux/tty.h>
 #include <linux/fb.h>
 #include <linux/slab.h>
+#include "fbsplash.h"
 
 #include <asm/uaccess.h>
 
@@ -235,6 +236,10 @@
 					      info))
 			break;
 	}
+	fb_copy_cmap(cmap, &info->cmap);
+	if (fbsplash_active(info, vc_cons[fg_console].d) &&
+	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) 
+		fbsplash_fix_pseudo_pal(info, vc_cons[fg_console].d);
 	return 0;
 }
 
@@ -265,6 +270,9 @@
 		if (transp)
 			transp++;
 	}
+	if (fbsplash_active(info, vc_cons[fg_console].d) &&
+	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) 
+		fbsplash_fix_pseudo_pal(info, vc_cons[fg_console].d);
 	return 0;
 }
 

Live long and prosper.

Signature · 11 lines
Michal 'Spock' Januszewski                        Gentoo Linux Developer
cell: +48504917690                         http://dev.gentoo.org/~spock/
JID: [email protected]               freenode: #gentoo-dev, #gentoo-pl



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#1 lore raw
Quoted 24 lines

diff -Nru a/drivers/video/fbcmap.c b/drivers/video/fbcmap.c

drivers/video/fbcmap.c +5 -0
@@ -16,6 +16,7 @@
 #include <linux/tty.h>
 #include <linux/fb.h>
 #include <linux/slab.h>
+#include "fbsplash.h"
 
 #include <asm/uaccess.h>
 
@@ -235,6 +236,10 @@
 					      info))
 			break;
 	}
+	fb_copy_cmap(cmap, &info->cmap);
+	if (fbsplash_active(info, vc_cons[fg_console].d) &&
+	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) 
+		fbsplash_fix_pseudo_pal(info, vc_cons[fg_console].d);
 	return 0;
 }
 

drivers/video/fbcmap.c line 277

Quoted 8 lines
drivers/video/fbcmap.c +3 -0
@@ -265,6 +270,9 @@
 		if (transp)
 			transp++;
 	}
+	if (fbsplash_active(info, vc_cons[fg_console].d) &&
+	    info->fix.visual == FB_VISUAL_DIRECTCOLOR) 
+		fbsplash_fix_pseudo_pal(info, vc_cons[fg_console].d);
 	return 0;
 }

That is just gross. You are putting console code back into the fbdev core.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click