From: "Paweł Goleniowski" <pawelg@dabrowa.pl>
To: linux-kernel@vger.kernel.org
Cc: marcelo.tosatti@cyclades.com, trivial@rustcorp.com.au
Subject: [PATCH for 2.4.x] rivafb & small 16 bit mode problem
Date: Thu, 8 Jan 2004 22:45:56 +0100 [thread overview]
Message-ID: <200401082245.56654.pawelg@dabrowa.pl> (raw)
[-- Attachment #1: Type: text/plain, Size: 337 bytes --]
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
[-- 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;
}
reply other threads:[~2004-01-08 21:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200401082245.56654.pawelg@dabrowa.pl \
--to=pawelg@dabrowa.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=trivial@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®