All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: gfxterm / grub_virtual_screen_setcolorstate()
Date: Wed, 23 Jan 2008 14:07:35 +0100	[thread overview]
Message-ID: <20080123130735.GA29078@thorin> (raw)
In-Reply-To: <87lk6gpw6f.fsf@xs4all.nl>

On Wed, Jan 23, 2008 at 01:23:52PM +0100, Marco Gerards wrote:
> Vesa Jääskeläinen <chaac@nic.fi> writes:
> 
> > Robert Millan wrote:
> >> On Mon, Dec 24, 2007 at 02:28:18AM +0100, Robert Millan wrote:
> >>> New patch.  Corrects a minor mistake when filling the last colum in the
> >>> menu.  Also, it doesn't change the colors on gfxterm since some reasjustments
> >>> were needed for that, and there's also a bug that makes it impossible to
> >>> change colors on the fly with gfxterm/vbe (I'll write more on that later).
> >> 
> >> This patch (relative to previous one) basicaly makes it work with a big
> >> ugly kludge (see "| 0xff000000" line).  The problem seems to be that alpha
> >> channel is set to 0 for all return values of grub_video_map_color() after
> >> gfxterm initialization.  I checked the few places in the code where those
> >> variables are zeroed, but to no avail.  I assume the problem is just they
> >> haven't been initialised, but I just have no idea where they're supposed to.
> >> 
> >> Any clues?
> >
> > Ok... Your "fix" with OR'ing is not a good one as that makes an
> > assumption about display mode settings. Idea of mapping colors is to get
> > most optimal color settings for desired video mode. Nevertheless I think
> > I know the problem and I get back to you shortly... now I sleep :)
> >
> > That zero alpha setting most likely comes from color table being
> > specified. (or from video mode settings currently in use, eg. no
> > alpha/reserved bits)
> 
> This was fixed already?

Vesa fixed it.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2008-01-23 13:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-23 21:09 [PATCH] colored menu Robert Millan
2007-12-24  1:28 ` Robert Millan
2007-12-24  1:35   ` gfxterm / grub_virtual_screen_setcolorstate() Robert Millan
2007-12-29 23:50     ` Vesa Jääskeläinen
2008-01-23 12:23       ` Marco Gerards
2008-01-23 13:07         ` Robert Millan [this message]
2007-12-24 19:46 ` [PATCH] colored menu Yoshinori K. Okuji
2007-12-25  9:26   ` Robert Millan
2007-12-25 10:27     ` Yoshinori K. Okuji
2007-12-25 11:16       ` Robert Millan

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=20080123130735.GA29078@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /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.