grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] do not hardcode color in gfxterm


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] do not hardcode color in gfxterm
Date: Sun, 16 Jun 2013 13:41:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130518 Icedove/17.0.5

On 16.06.2013 12:45, Andrey Borzenkov wrote:
> 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.
> 
Go ahead.
> Signed-off-by: Andrey Borzenkov <address@hidden>
> 
> ---
>  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 <address@hidden>
> +
> +     * 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  <address@hidden>
>  
>       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);
>  
> 


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]