mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
[fbcon] Update the console width and height after changing mode
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
|||||||
#include <ipxe/image.h>
|
#include <ipxe/image.h>
|
||||||
#include <ipxe/pixbuf.h>
|
#include <ipxe/pixbuf.h>
|
||||||
#include <ipxe/umalloc.h>
|
#include <ipxe/umalloc.h>
|
||||||
|
#include <ipxe/console.h>
|
||||||
#include <ipxe/fbcon.h>
|
#include <ipxe/fbcon.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -781,6 +782,9 @@ int fbcon_init ( struct fbcon *fbcon, userptr_t start,
|
|||||||
/* Clear screen */
|
/* Clear screen */
|
||||||
fbcon_clear ( fbcon, 0 );
|
fbcon_clear ( fbcon, 0 );
|
||||||
|
|
||||||
|
/* Update console width and height */
|
||||||
|
console_set_size ( fbcon->character.width, fbcon->character.height );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ufree ( fbcon->picture.start );
|
ufree ( fbcon->picture.start );
|
||||||
|
|||||||
Reference in New Issue
Block a user