Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JHecu-0001W1-Kj for mharc-grub-devel@gnu.org; Wed, 23 Jan 2008 07:22:44 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHect-0001UZ-Dk for grub-devel@gnu.org; Wed, 23 Jan 2008 07:22:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHeco-0001NO-DI for grub-devel@gnu.org; Wed, 23 Jan 2008 07:22:42 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHecn-0001Mg-Qq for grub-devel@gnu.org; Wed, 23 Jan 2008 07:22:37 -0500 Received: from smtp-vbr8.xs4all.nl ([194.109.24.28]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JHecn-0008EE-92 for grub-devel@gnu.org; Wed, 23 Jan 2008 07:22:37 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0NCMZ2x060774 for ; Wed, 23 Jan 2008 13:22:36 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20071223210936.GA27776@thorin> <20071224012818.GA22510@thorin> <20071224013530.GA22710@thorin> <4776DD49.7030406@nic.fi> Mail-Copies-To: mgerards@xs4all.nl Date: Wed, 23 Jan 2008 13:23:52 +0100 In-Reply-To: <4776DD49.7030406@nic.fi> (Vesa =?iso-8859-1?Q?J=E4=E4skel=E4?= =?iso-8859-1?Q?inen's?= message of "Sun, 30 Dec 2007 01:50:33 +0200") Message-ID: <87lk6gpw6f.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: gfxterm / grub_virtual_screen_setcolorstate() X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 12:22:43 -0000 Vesa J=E4=E4skel=E4inen 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 reasjus= tments >>> 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 late= r). >>=20 >> This patch (relative to previous one) basicaly makes it work with a big >> ugly kludge (see "| 0xff000000" line). The problem seems to be that alp= ha >> 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. >>=20 >> 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? -- Marco