From 608d6cac9eb6df2bf232ce955d81dfba63b9570b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 22 Jan 2014 13:57:07 +0000 Subject: [fbcon] Allow for an arbitrary margin around the text area Signed-off-by: Michael Brown --- src/arch/i386/interface/pcbios/vesafb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/arch') diff --git a/src/arch/i386/interface/pcbios/vesafb.c b/src/arch/i386/interface/pcbios/vesafb.c index 480c9acf7..bc2301cc6 100644 --- a/src/arch/i386/interface/pcbios/vesafb.c +++ b/src/arch/i386/interface/pcbios/vesafb.c @@ -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 ); -- cgit v1.2.3-55-g7522