diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-01-22 13:22:32 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-01-22 14:28:49 +0000 |
commit | 43c8c272ae2fb17c85275c07bc5fecbf21fe1ab5 (patch) | |
tree | 19b53680ffa53765df8b0b178dda630a0565755f /src | |
parent | 11ad25933fce5d73f757b964a5898530eee7eceb (diff) | |
download | ipxe-43c8c272ae2fb17c85275c07bc5fecbf21fe1ab5.tar.gz |
[cmdline] Rename "console" command's --bpp option to --depth
Rename the "--bpp" option to "--depth", to free up the single-letter
option "-b" for "--bottom" in preparation for adding margin support.
This does not break backwards compatibility with documented features,
since the "console" command has not yet been documented.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/i386/interface/pcbios/vesafb.c | 2 | ||||
-rw-r--r-- | src/hci/commands/console_cmd.c | 4 | ||||
-rw-r--r-- | src/include/ipxe/console.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/i386/interface/pcbios/vesafb.c b/src/arch/i386/interface/pcbios/vesafb.c index d4a7287a8..2adc7b040 100644 --- a/src/arch/i386/interface/pcbios/vesafb.c +++ b/src/arch/i386/interface/pcbios/vesafb.c @@ -419,7 +419,7 @@ static int vesafb_init ( struct console_configuration *config ) { /* Select mode */ if ( ( mode_number = vesafb_select_mode ( mode_numbers, config->width, config->height, - config->bpp ) ) < 0 ) { + config->depth ) ) < 0 ) { rc = mode_number; goto err_select_mode; } diff --git a/src/hci/commands/console_cmd.c b/src/hci/commands/console_cmd.c index 9bea27903..a82fa38fe 100644 --- a/src/hci/commands/console_cmd.c +++ b/src/hci/commands/console_cmd.c @@ -51,8 +51,8 @@ static struct option_descriptor console_opts[] = { struct console_options, config.width, parse_integer ), OPTION_DESC ( "y", 'y', required_argument, struct console_options, config.height, parse_integer ), - OPTION_DESC ( "bpp", 'b', required_argument, - struct console_options, config.bpp, parse_integer ), + OPTION_DESC ( "depth", 'd', required_argument, + struct console_options, config.depth, parse_integer ), OPTION_DESC ( "picture", 'p', required_argument, struct console_options, picture, parse_string ), OPTION_DESC ( "keep", 'k', no_argument, diff --git a/src/include/ipxe/console.h b/src/include/ipxe/console.h index 6696a5b8d..4b90c9cec 100644 --- a/src/include/ipxe/console.h +++ b/src/include/ipxe/console.h @@ -27,7 +27,7 @@ struct console_configuration { /** Height */ unsigned int height; /** Colour depth */ - unsigned int bpp; + unsigned int depth; /** Left margin */ unsigned int left; /** Right margin */ |