diff options
author | Michael Brown | 2013-12-06 18:51:34 +0100 |
---|---|---|
committer | Michael Brown | 2013-12-06 18:52:05 +0100 |
commit | 4d9f100240aa9ac6dd3853aead9e97e1cffd383f (patch) | |
tree | 46a7cd6843f69743601c1ec146b4c519f7a48d25 /src/core/fbcon.c | |
parent | [console] Allow consoles to update the recorded console size (diff) | |
download | ipxe-4d9f100240aa9ac6dd3853aead9e97e1cffd383f.tar.gz ipxe-4d9f100240aa9ac6dd3853aead9e97e1cffd383f.tar.xz ipxe-4d9f100240aa9ac6dd3853aead9e97e1cffd383f.zip |
[fbcon] Update the console width and height after changing mode
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/fbcon.c')
-rw-r--r-- | src/core/fbcon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/fbcon.c b/src/core/fbcon.c index 4e761849..90786fe0 100644 --- a/src/core/fbcon.c +++ b/src/core/fbcon.c @@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/image.h> #include <ipxe/pixbuf.h> #include <ipxe/umalloc.h> +#include <ipxe/console.h> #include <ipxe/fbcon.h> /** @@ -781,6 +782,9 @@ int fbcon_init ( struct fbcon *fbcon, userptr_t start, /* Clear screen */ fbcon_clear ( fbcon, 0 ); + /* Update console width and height */ + console_set_size ( fbcon->character.width, fbcon->character.height ); + return 0; ufree ( fbcon->picture.start ); |