mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [TRIVIAL PATCH 2.4] rivafb & 16 bit
@ 2003-12-22 22:21 Paweł Goleniowski
  0 siblings, 0 replies; only message in thread
From: Paweł Goleniowski @ 2003-12-22 22:21 UTC (permalink / raw)
  To: linux-kernel

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

There is a problem with 16 bit mode with rivafb. Colors are sometimes broken 
(specialy under Midnight Commander). This small patch fixes it. I've been 
using it for last months and it works without any problems.

Pawel 'Goldi' Goleniowski

[-- Attachment #2: patch-rivafb.diff --]
[-- Type: text/x-diff, Size: 461 bytes --]

--- linux/drivers/video/riva/accel.c	2003-12-22 22:46:27.000000000 +0100
+++ linux/drivers/video/riva/accel.c	2003-12-22 19:47:19.000000000 +0100
@@ -300,8 +300,8 @@
 
 static inline void convert_bgcolor_16(u32 *col)
 {
-	*col = ((*col & 0x00007C00) << 9)
-             | ((*col & 0x000003E0) << 6)
+	*col = ((*col & 0x0000F800) << 8)
+             | ((*col & 0x000007E0) << 5)
              | ((*col & 0x0000001F) << 3)
              |          0xFF000000;
 }

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

only message in thread, other threads:[~2003-12-22 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-22 22:21 [TRIVIAL PATCH 2.4] rivafb & 16 bit Paweł Goleniowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®