[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] rivafb & small 16 bit mode problem


Ani,

	I assume this should be in 2.6's drivers/video/riva/fbdev.c as
well?

Rusty.

Date: Thu, 8 Jan 2004 22:45:56 +0100
From: "[iso-8859-2] Pawe? Goleniowski" <pawelg _at_ dabrowa.pl>
To: linux-kernel _at_ vger.kernel.org
Cc: marcelo.tosatti _at_ cyclades.com, trivial _at_ rustcorp.com.au
Subject: [PATCH for 2.4.x] rivafb & small 16 bit mode problem

I have already send this once before Xmas but it probably got lost, so I'm
sending it again:

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


--Boundary-00=_U+c//wvZdA6GwMA
Content-Type: TEXT/X-DIFF; CHARSET=iso-8859-2; NAME="patch-rivafb.diff"
Content-ID: <Pine.LNX.4.58L.0401220001133.18059 _at_ logos.cnet>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="patch-rivafb.diff"

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

--Boundary-00=_U+c//wvZdA6GwMA--

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: