Subject: Re: CVS commit: src/sys/dev/wscons
To: None <tech-kern@NetBSD.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-kern
Date: 05/25/2005 01:24:26
On Tue, May 24, 2005 at 22:42:18 +0200, Martin Husemann wrote:

> On Tue, May 24, 2005 at 10:07:30PM +0200, Matthias Drochner wrote:
> 
> > Fine only if you watch out carefully what gets into the config file.
> > I'd say having 2 ways of getting a color lighter makes things more
> > complicated. I'd avoid it.
> 
> Ok - the easiest way to achive what you suggested (or what I understood
> that you suggested) would be this patch. I don't realy like it,
> looks like a hack to me. Maybe I misunderstood your suggestion.
> 
> Index: rasops.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/rasops/rasops.c,v
> retrieving revision 1.48
> diff -u -r1.48 rasops.c
> --- rasops.c    2 May 2005 00:00:33 -0000       1.48
> +++ rasops.c    24 May 2005 20:33:41 -0000
> @@ -409,6 +409,8 @@
>                 bg = WSCOL_BLACK;
>  #endif
>         }
> +       if (bg == WSCOL_WHITE)
> +               bg += 8;        /* use real white for background */

This hack should be protected with if ((flg & WSATTR_HILIT) != 0)
Not that I like it.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen