From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Cc: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Subject: Re: Fwd: [PATCH] gfxpayload
Date: Sun, 17 May 2009 22:36:42 +0200 [thread overview]
Message-ID: <20090517203642.GU3277@thorin> (raw)
In-Reply-To: <d7ead6de0905170734u4a13d1ebl3f4686011eeef698@mail.gmail.com>
Hi,
On Sun, May 17, 2009 at 04:34:16PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> #ifndef GRUB_ASSUME_LINUX_HAS_FB_SUPPORT
> -#define GRUB_ASSUME_LINUX_HAS_FB_SUPPORT 0
> +#define DEFAULT_VIDEO_MODE "text"
> +#else
> +#define DEFAULT_VIDEO_MODE "keep"
> #endif
As discussed on IRC, this "keep" option seems unnecessary; it just means
"do nothing" so we may as well #ifdef the code out.
> + return grub_error (GRUB_ERR_OUT_OF_MEMORY,
> + "couldn't allocate temporary storag");
Typo.
> if (grub_strcmp (val, "normal") == 0)
> - vid_mode = GRUB_LINUX_VID_MODE_NORMAL;
> + vid_mode = 0;
> else if (grub_strcmp (val, "ext") == 0)
> - vid_mode = GRUB_LINUX_VID_MODE_EXTENDED;
> + vid_mode = 1;
> [...]
> switch (vid_mode)
> {
> case 0:
> [...]
> case 1:
Can we avoid encoding this information as numbers? We had nice macros
before, and plain numbers are confusing to read for those not familiar with
the code.
> + grub_env_set ("gfxpayload", "text");
> + grub_printf ("%s is depreceated. "
Typo ;-)
> + buf = grub_malloc (20);
> + if (! buf)
> + {
> + grub_error (GRUB_ERR_OUT_OF_MEMORY,
> + "couldn't allocate temporary storage");
> + goto fail;
> + }
Doesn't grub_malloc set this errno / errmsg already?
> --- a/term/gfxterm.c
> +++ b/term/gfxterm.c
> @@ -27,10 +27,7 @@
> #include <grub/bitmap.h>
> #include <grub/command.h>
>
> -#define DEFAULT_VIDEO_WIDTH 640
> -#define DEFAULT_VIDEO_HEIGHT 480
> -#define DEFAULT_VIDEO_FLAGS 0
> -
> +#define DEFAULT_VIDEO_MODE "1024x768,800x600,640x480"
Our fonts / texts / menus in general are not prepared to cope well with
resolutions higher than 640x480. It works, but looks different/ugly.
Please leave that as default untill we solve those problems.
Wrt changes in the video subsystem, as discussed on IRC this was discussed
before (me and Vesa, I think) and Vesa said he wanted to think about it.
Would be nice if we can reach consensus on this, and someone who's
familiarised with that area (not me) could approve those changes.
But Vesa is on vacation... maybe Colin? I don't know. Try CCing them :-)
Thanks!
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-05-17 20:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-16 18:01 [PATCH] gfxpayload Vladimir 'phcoder' Serbinenko
2009-05-16 18:20 ` Felix Zielcke
2009-05-17 12:35 ` Vladimir 'phcoder' Serbinenko
[not found] ` <d7ead6de0905170734u4a13d1ebl3f4686011eeef698@mail.gmail.com>
2009-05-17 20:36 ` Robert Millan [this message]
2009-05-18 15:09 ` Colin D Bennett
[not found] ` <d7ead6de0905300823u65ab7675h1c6e59b7d76f16be@mail.gmail.com>
2009-05-30 19:41 ` Fwd: " Robert Millan
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=20090517203642.GU3277@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
--cc=phcoder@gmail.com \
/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.