linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fbcon issue
@ 2004-12-27  0:52 Imago
  0 siblings, 0 replies; only message in thread
From: Imago @ 2004-12-27  0:52 UTC (permalink / raw)
  To: linux-fbdev-devel

Hi
while doing some bug hunting for another project I discovered an issue
which is imho a bug in fbcon.
The problem is that each virtual console has its own color palette but
the framebuffer only has one color map.
So, for example, if im running fbcon on vt1 and set there a non-default
colormap and then allocate a new vt, for which the standard
color palette is set, also the framebuffer colormap is set back to the
default.Which will lead to color corruption on the actual vt.
A fix could be to allow setting of color palette only for the foreground
console,
ie change following in fbcon.c: fbcon_set_palette() at line 2400:

if (fbcon_is_inactive(vc, info))
                return -EINVAL;

to

if ( fbcon_is_inactive(vc, info) ||  (vc->vc_num != fg_console) )
                return -EINVAL;

Cu
Peter




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

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

only message in thread, other threads:[~2004-12-27  0:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27  0:52 Fbcon issue Imago

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