Browse Source

[fbcon] Update the console width and height after changing mode

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
4d9f100240
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/core/fbcon.c

+ 4
- 0
src/core/fbcon.c View File

33
 #include <ipxe/image.h>
33
 #include <ipxe/image.h>
34
 #include <ipxe/pixbuf.h>
34
 #include <ipxe/pixbuf.h>
35
 #include <ipxe/umalloc.h>
35
 #include <ipxe/umalloc.h>
36
+#include <ipxe/console.h>
36
 #include <ipxe/fbcon.h>
37
 #include <ipxe/fbcon.h>
37
 
38
 
38
 /**
39
 /**
781
 	/* Clear screen */
782
 	/* Clear screen */
782
 	fbcon_clear ( fbcon, 0 );
783
 	fbcon_clear ( fbcon, 0 );
783
 
784
 
785
+	/* Update console width and height */
786
+	console_set_size ( fbcon->character.width, fbcon->character.height );
787
+
784
 	return 0;
788
 	return 0;
785
 
789
 
786
 	ufree ( fbcon->picture.start );
790
 	ufree ( fbcon->picture.start );

Loading…
Cancel
Save