mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[fbcon] Allow for an arbitrary margin around the text area
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -76,6 +76,8 @@ struct vesafb {
|
||||
physaddr_t start;
|
||||
/** Pixel geometry */
|
||||
struct fbcon_geometry pixel;
|
||||
/** Margin */
|
||||
struct fbcon_margin margin;
|
||||
/** Colour mapping */
|
||||
struct fbcon_colour_map map;
|
||||
/** Font definition */
|
||||
@@ -428,8 +430,8 @@ static int vesafb_init ( unsigned int min_width, unsigned int min_height,
|
||||
|
||||
/* Initialise frame buffer console */
|
||||
if ( ( rc = fbcon_init ( &vesafb.fbcon, phys_to_user ( vesafb.start ),
|
||||
&vesafb.pixel, &vesafb.map, &vesafb.font,
|
||||
pixbuf ) ) != 0 )
|
||||
&vesafb.pixel, &vesafb.margin, &vesafb.map,
|
||||
&vesafb.font, pixbuf ) ) != 0 )
|
||||
goto err_fbcon_init;
|
||||
|
||||
free ( mode_numbers );
|
||||
|
||||
Reference in New Issue
Block a user