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: Patch for better size handling of GRUB edit or shell
Date: Mon, 10 Dec 2012 16:15:14 +0100	[thread overview]
Message-ID: <50C5FC82.2030209@gmail.com> (raw)
In-Reply-To: <5071720C.1060107@reinform.de>

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

On 07.10.2012 14:14, Dr. Tilmann Bubeck wrote:

> Hi
> 
> especially on low resolution systems (e.g. VirtualBox with 800x600) the
> GRUB edit window (gfxmenu/view.c) and GRUB shell are hard to use,
> because they only use 70% of the available width, which is 800px * 70% =
> 560px. Using the borders around the view makes the window even smaller.
> Please find attached a screenshot ("grub-unchanged-640x480-editor.png")
> showing the unmodified GRUB running in gfxmode=auto which is 800x600.
> You can see, that the edit window is ridiculus small.
> 
> Please find attached a patch, which changes the way, the view size is
> constructed. Before the patch it always used 70% of the available width.
> The patch checks if a full line of characters is fitting in these 70%
> and otherwise uses the available screen width, if it is not enough.
> 
> You can see the result in the second screenshot
> ("grub-640x480-editor.png") attached. There is now much more room for
> the editor, without loosing the 70% style if enough space is available.
> 
> Could you please apply that patch or give any feedback?
> 

Patch applied after fixing its unjustified performance overhead (I
adapted the code a bit for it.

> Thanks!
> 
>  Tilmann Bubeck
> 
> 
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel



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


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

      reply	other threads:[~2012-12-10 15:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-07 12:14 Patch for better size handling of GRUB edit or shell Dr. Tilmann Bubeck
2012-12-10 15:15 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]

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=50C5FC82.2030209@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.