patch: Fixing console text colors

Rikard Lindström ornotermes at gmail.com
Sun Jul 11 12:07:29 EDT 2010


diff --git a/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
b/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
index eeb702a..4f71708 100644
--- a/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
+++ b/target/linux/xburst/files-2.6.32/drivers/video/jz4740_fb.c
@@ -221,6 +221,10 @@ static int jzfb_setcolreg(unsigned regno,
unsigned red, unsigned green, unsigned
 	if (regno >= fb->cmap.len)
 		return -EINVAL;

+	red >>= 8;
+	green >>= 8;
+	blue >>= 8;
+
 	((uint32_t*)fb->pseudo_palette)[regno] = red << 16 | green << 8 | blue;

 	return 0;




More information about the discussion mailing list


interactive