All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH 1/2] Replace hook-based with flag-based approach for choosing video mode
Date: Sun, 23 Aug 2009 12:30:10 +0200	[thread overview]
Message-ID: <20090823103010.GC4130@thorin> (raw)
In-Reply-To: <d7ead6de0908161151k4bd2b22clb0a3a887c5ff1f70@mail.gmail.com>


I've only one comment, the rest looks fine.

Btw, please include a ChangeLog entry next time.

On Sun, Aug 16, 2009 at 08:51:06PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> diff --git a/commands/videotest.c b/commands/videotest.c
> index 6fe4b9b..07f61bd 100644
> --- a/commands/videotest.c
> +++ b/commands/videotest.c
> @@ -30,7 +30,8 @@ grub_cmd_videotest (grub_command_t cmd __attribute__ ((unused)),
>                      int argc __attribute__ ((unused)),
>                      char **args __attribute__ ((unused)))
>  {
> -  if (grub_video_set_mode ("1024x768;800x600;640x480", 0) != GRUB_ERR_NONE)
> +  if (grub_video_set_mode ("1024x768;800x600;640x480",
> +			   GRUB_VIDEO_MODE_TYPE_PURE_TEXT, 0) != GRUB_ERR_NONE)
>      return grub_errno;
> [...]
>  grub_err_t grub_video_set_mode (const char *modestring,
> -				int NESTED_FUNC_ATTR (*hook) (grub_video_adapter_t p,
> -							      struct grub_video_mode_info *mode_info));
> +				unsigned int modemask,
> +				unsigned int modevalue);

People usually associate "pure text" mode with a managed mode like 80x25
vga text.  I understand here it means something else, but is there some
way this could be clearer?  Perhaps a different macro name or a comment.

-- 
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."



  parent reply	other threads:[~2009-08-23 10:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-16 18:51 [PATCH 1/2] Replace hook-based with flag-based approach for choosing video mode Vladimir 'phcoder' Serbinenko
2009-08-17 13:51 ` Robert Millan
2009-08-21 12:54   ` Vladimir 'phcoder' Serbinenko
2009-08-23 10:25     ` Robert Millan
2009-08-23 10:30 ` Robert Millan [this message]
2009-08-23 10:58   ` Vladimir 'phcoder' Serbinenko
2009-08-23 22:36     ` Robert Millan
2009-08-23 22:40       ` Vladimir 'phcoder' Serbinenko

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=20090823103010.GC4130@thorin \
    --to=rmh@aybabtu.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.