Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QbE16-0002Wu-OS for mharc-grub-devel@gnu.org; Mon, 27 Jun 2011 11:46:28 -0400 Received: from eggs.gnu.org ([140.186.70.92]:45334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbE12-0002V7-6u for grub-devel@gnu.org; Mon, 27 Jun 2011 11:46:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbE10-00013U-2R for grub-devel@gnu.org; Mon, 27 Jun 2011 11:46:23 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:33274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbE0z-00013K-Ks for grub-devel@gnu.org; Mon, 27 Jun 2011 11:46:21 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1QbE0x-0004nq-QO for grub-devel@gnu.org; Mon, 27 Jun 2011 15:46:19 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 4.72) (envelope-from ) id 1QbE0u-0006Mg-Ep for grub-devel@gnu.org; Mon, 27 Jun 2011 16:46:16 +0100 Date: Mon, 27 Jun 2011 16:46:14 +0100 From: Colin Watson To: grub-devel@gnu.org Subject: r3172 regresses background_color handling Message-ID: <20110627154614.GX23533@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.23.3.142 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2011 15:46:25 -0000 This commit: revno: 3172 committer: Vladimir 'phcoder' Serbinenko branch nick: grub timestamp: Wed 2011-04-06 13:00:18 +0200 message: Output errors if theme loading failed. * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to grub_gfxterm_fullscreen on error paths to ... * grub-core/normal/menu.c (menu_init): ...here. Wait after showing theme loading error. ... regresses the handling of background_color: grub_gfxterm_fullscreen sets up the virtual screen again, including setting the background colour back to black, and now it's called every time we re-enter the menu. Two simple ways to reproduce this are: 1) Put 'background_color 44,0,30' before the menuentry commands in grub.cfg. The menu should show up with a purple background, but in fact is black. 2) From a menu, press 'c' for a command line, then enter 'background_color 44,0,30', which should turn the screen purple. Now press Escape to go back to the menu. The background should stay purple, but in fact turns black. What's the best fix for this? grub_gfxterm_fullscreen can run before the virtual screen is set up, so I don't think I can just use virtual_screen.bg_color_display. Can we go back to having grub_gfxterm_fullscreen called once on startup and then only on error paths, which I think was the previous behaviour? Thanks, -- Colin Watson [cjwatson@ubuntu.com]