linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] aty128fb: RGB565 console color fix
@ 2004-05-14  5:00 Ville Syrjälä
  0 siblings, 0 replies; only message in thread
From: Ville Syrjälä @ 2004-05-14  5:00 UTC (permalink / raw)
  To: linux-fbdev-devel

[-- Attachment #1: Type: text/plain, Size: 128 bytes --]

This patch fixes console colors in RGB565 mode on aty128fb.

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/

[-- Attachment #2: aty128fb-2.6-rgb565.patch --]
[-- Type: text/plain, Size: 528 bytes --]

diff -urN linux-orig/drivers/video/aty/aty128fb.c linux/drivers/video/aty/aty128fb.c
--- linux-orig/drivers/video/aty/aty128fb.c	2004-05-13 21:54:36.114529808 +0300
+++ linux/drivers/video/aty/aty128fb.c	2004-05-14 07:16:21.258569072 +0300
@@ -2092,7 +2092,7 @@
 			pal[regno] = (regno << 10) | (regno << 5) | regno;
 			break;
 		case 16:
-			pal[regno] = (regno << 11) | (regno << 6) | regno;
+			pal[regno] = (regno << 11) | (regno << 5) | regno;
 			break;
 		case 24:
 			pal[regno] = (regno << 16) | (regno << 8) | regno;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-14  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14  5:00 [PATCH] aty128fb: RGB565 console color fix Ville Syrjälä

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