All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: r3172 regresses background_color handling
Date: Mon, 27 Jun 2011 18:19:23 +0200	[thread overview]
Message-ID: <4E08AD8B.7020407@gmail.com> (raw)
In-Reply-To: <20110627154614.GX23533@riva.ucam.org>

[-- Attachment #1: Type: text/plain, Size: 1728 bytes --]

On 27.06.2011 17:46, Colin Watson wrote:
> This commit:
>
> revno: 3172
> committer: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
> 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?
The reason to run it there is to avoid that gfxterm stays in some stuck
mode if theme loading fails midway.
> Thanks,
>


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2011-06-27 16:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 15:46 r3172 regresses background_color handling Colin Watson
2011-06-27 16:19 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2011-06-28  9:52   ` Colin Watson

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=4E08AD8B.7020407@gmail.com \
    --to=phcoder@gmail.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.