From 4d9f100240aa9ac6dd3853aead9e97e1cffd383f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 6 Dec 2013 17:51:34 +0000 Subject: [PATCH] [fbcon] Update the console width and height after changing mode Signed-off-by: Michael Brown --- src/core/fbcon.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/fbcon.c b/src/core/fbcon.c index 4e761849f..90786fe0c 100644 --- a/src/core/fbcon.c +++ b/src/core/fbcon.c @@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include +#include #include /** @@ -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 );