[fbcon] Allow for an arbitrary margin around the text area

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-01-22 13:57:07 +00:00
parent 7fc380e950
commit 608d6cac9e
4 changed files with 41 additions and 15 deletions

View File

@@ -28,6 +28,14 @@ struct console_configuration {
unsigned int height;
/** Colour depth */
unsigned int bpp;
/** Left margin */
unsigned int left;
/** Right margin */
unsigned int right;
/** Top margin */
unsigned int top;
/** Bottom margin */
unsigned int bottom;
/** Background picture, if any */
struct pixel_buffer *pixbuf;
};

View File

@@ -145,6 +145,7 @@ struct fbcon {
extern int fbcon_init ( struct fbcon *fbcon, userptr_t start,
struct fbcon_geometry *pixel,
struct fbcon_margin *margin,
struct fbcon_colour_map *map,
struct fbcon_font *font,
struct pixel_buffer *pixbuf );