From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UoASQ-0000rn-HJ for mharc-grub-devel@gnu.org; Sun, 16 Jun 2013 06:45:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoASN-0000qw-VG for grub-devel@gnu.org; Sun, 16 Jun 2013 06:45:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoASN-0004hj-2f for grub-devel@gnu.org; Sun, 16 Jun 2013 06:45:11 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:33882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoASM-0004hY-RV for grub-devel@gnu.org; Sun, 16 Jun 2013 06:45:10 -0400 Received: by mail-la0-f46.google.com with SMTP id eg20so1617011lab.5 for ; Sun, 16 Jun 2013 03:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=ONkctB0cCAGpOD8cX8EbJXVstdvjJkx9zU6WhZvM3Kc=; b=V5NTCa9pFPT6da2H52iFxV9YNUb6Kc3+Cs52Ba/j/WdChXrOQVY+RebXzG29O591v7 MQQUiGhJMvG/nI33Kc6epV0KQSqo3cEhBLMgOR+J8gluT24vfZKTAGhgeJfBOzW7gEPM JC9L75acwBjXrAiZexizvZ0zKGZJFkvhpsBF269VqvDAgtwvqh7obWYDtDKcp1zY1DXZ /t7VLuwtyv4sW9CsXjnu7UDGhh+oFwL7AfZ5Lb5UelsuDuCAHZyHDiCHxrV8t041ltEA QXCJ6uILiKqwvDec4ygUD6KzZlW9ESeLqbyzkzfPAuTzLwKwzzgM9CZJwFPae/AqjLgf Jlyw== X-Received: by 10.152.88.42 with SMTP id bd10mr4605203lab.32.1371379509558; Sun, 16 Jun 2013 03:45:09 -0700 (PDT) Received: from localhost.localdomain (ppp79-139-160-84.pppoe.spdop.ru. [79.139.160.84]) by mx.google.com with ESMTPSA id u1sm3774545lag.5.2013.06.16.03.45.08 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Jun 2013 03:45:09 -0700 (PDT) From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH] do not hardcode color in gfxterm Date: Sun, 16 Jun 2013 14:45:06 +0400 Message-Id: <1371379506-30318-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.8.1.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e 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: Sun, 16 Jun 2013 10:45:12 -0000 gfxterm was using hardcoded color on intialization. So first colors were set in normal to white/black and then gfxterm was loaded and set colors to light-gray/black. Make sure gfxterm is using current colors during initialization. Signed-off-by: Andrey Borzenkov --- ChangeLog | 5 +++++ grub-core/term/gfxterm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e71a848..33de282 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-06-16 Andrey Borzenkov + + * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use + grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR. + 2013-06-16 Vladimir Serbinenko Fix casts when compiling coreboot-specific code for 64-bit EFI. diff --git a/grub-core/term/gfxterm.c b/grub-core/term/gfxterm.c index b1d0707..7e00678 100644 --- a/grub-core/term/gfxterm.c +++ b/grub-core/term/gfxterm.c @@ -249,7 +249,7 @@ grub_virtual_screen_setup (unsigned int x, unsigned int y, virtual_screen.standard_color_setting = DEFAULT_STANDARD_COLOR; - virtual_screen.term_color = GRUB_TERM_DEFAULT_NORMAL_COLOR; + virtual_screen.term_color = grub_term_normal_color; set_term_color (virtual_screen.term_color); -- tg: (0ed37fc..) u/highlight_after_more (depends on: master)