summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/interface
diff options
context:
space:
mode:
authorMichael Brown2014-01-22 14:57:07 +0100
committerMichael Brown2014-01-22 15:26:31 +0100
commit608d6cac9eb6df2bf232ce955d81dfba63b9570b (patch)
tree8b473d2a137e9091efd835219b56c5f9e33b49dc /src/arch/i386/interface
parent[fbcon] Centre background picture on console (diff)
downloadipxe-608d6cac9eb6df2bf232ce955d81dfba63b9570b.tar.gz
ipxe-608d6cac9eb6df2bf232ce955d81dfba63b9570b.tar.xz
ipxe-608d6cac9eb6df2bf232ce955d81dfba63b9570b.zip
[fbcon] Allow for an arbitrary margin around the text area
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386/interface')
-rw-r--r--src/arch/i386/interface/pcbios/vesafb.c6
1 files changed, 4 insertions, 2 deletions
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 );