Skip to content

Commit

Permalink
[fbcon] Update the console width and height after changing mode
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Dec 6, 2013
1 parent 03401f9 commit 4d9f100
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/fbcon.c
Expand Up @@ -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>

/**
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 4d9f100

Please sign in to comment.