]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[fbcon] Update the console width and height after changing mode
authorMichael Brown <mcb30@ipxe.org>
Fri, 6 Dec 2013 17:51:34 +0000 (17:51 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 6 Dec 2013 17:52:05 +0000 (17:52 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fbcon.c

index 4e761849f64ccc0dde42702d5f0fd6c826c3047b..90786fe0c3fcc6a8327bd3b2ddc46f03c7113985 100644 (file)
@@ -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 );