Bläddra i källkod

[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>
tags/v1.20.1
Michael Brown 10 år sedan
förälder
incheckning
43c8c272ae

+ 1
- 1
src/arch/i386/interface/pcbios/vesafb.c Visa fil

@@ -419,7 +419,7 @@ static int vesafb_init ( struct console_configuration *config ) {
419 419
 	/* Select mode */
420 420
 	if ( ( mode_number = vesafb_select_mode ( mode_numbers, config->width,
421 421
 						  config->height,
422
-						  config->bpp ) ) < 0 ) {
422
+						  config->depth ) ) < 0 ) {
423 423
 		rc = mode_number;
424 424
 		goto err_select_mode;
425 425
 	}

+ 2
- 2
src/hci/commands/console_cmd.c Visa fil

@@ -51,8 +51,8 @@ static struct option_descriptor console_opts[] = {
51 51
 		      struct console_options, config.width, parse_integer ),
52 52
 	OPTION_DESC ( "y", 'y', required_argument,
53 53
 		      struct console_options, config.height, parse_integer ),
54
-	OPTION_DESC ( "bpp", 'b', required_argument,
55
-		      struct console_options, config.bpp, parse_integer ),
54
+	OPTION_DESC ( "depth", 'd', required_argument,
55
+		      struct console_options, config.depth, parse_integer ),
56 56
 	OPTION_DESC ( "picture", 'p', required_argument,
57 57
 		      struct console_options, picture, parse_string ),
58 58
 	OPTION_DESC ( "keep", 'k', no_argument,

+ 1
- 1
src/include/ipxe/console.h Visa fil

@@ -27,7 +27,7 @@ struct console_configuration {
27 27
 	/** Height */
28 28
 	unsigned int height;
29 29
 	/** Colour depth */
30
-	unsigned int bpp;
30
+	unsigned int depth;
31 31
 	/** Left margin */
32 32
 	unsigned int left;
33 33
 	/** Right margin */

Laddar…
Avbryt
Spara