From: Antonino Daplas <adaplas@pol.net>
To: fbdev <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH] inivisible cursor on vesafb
Date: 19 Aug 2002 09:10:03 +0800 [thread overview]
Message-ID: <1029719436.597.13.camel@daplas> (raw)
In-Reply-To: <20020818230541.GA1680@ppc.vc.cvut.cz>
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
On Mon, 2002-08-19 at 07:05, Petr Vandrovec wrote:
> Hi Linus,
>
> Since vesafb was converted to the (strange) cfb* interface, it uses random
> colors for the cursor, making cursor invisible when console uses black foreground
> (f.e. Midnight Commander does that). Problem is common to all fbdevs which
> use fbcon-accel interface.
>
> This change tries to restore old behavior which existed before cfb* came in.
> Unfortunately due to region.color semantic it is not possible to completely
> restore previous behavior -
> + for truecolor cfbfillrect always consults current palette, so we do not
> have "always invert" constant available, and so we do inversion with palette
> color 15 (it is light white, ~0, by default)
> + for directcolor it assumes that display has at least 4 bits per color.
> + for pseudocolor it works as old code worked.
>
I think it has been agreed that all color entries in fbcon-accel should
always be an index to the pseudopalette regardless of the visuals. So a
more consistent change is to have cfbfillrect look up the color from the
pseudopalette assuming that the driver correctly loaded the value to the
pseudopalette.
[-- Attachment #2: directcolor.diff --]
[-- Type: text/plain, Size: 470 bytes --]
--- cfbfillrect.c-orig Mon Aug 19 00:46:03 2002
+++ cfbfillrect.c Mon Aug 19 00:48:31 2002
@@ -52,7 +52,8 @@
start_index = ((unsigned long) dst1 & (bpl - 1));
end_index = ((unsigned long) (dst1 + n) & (bpl - 1));
- if (p->fix.visual == FB_VISUAL_TRUECOLOR)
+ if (p->fix.visual == FB_VISUAL_TRUECOLOR ||
+ p->fix.visual == FB_VISUAL_DIRECTCOLOR )
fg = fgcolor = ((u32 *) (p->pseudo_palette))[rect->color];
else
fg = fgcolor = rect->color;
prev parent reply other threads:[~2002-08-19 1:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-18 23:05 [PATCH] inivisible cursor on vesafb Petr Vandrovec
2002-08-19 1:10 ` Antonino Daplas [this message]
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=1029719436.597.13.camel@daplas \
--to=adaplas@pol.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.