Преглед изворни кода

[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 година
родитељ
комит
4d9f100240
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      src/core/fbcon.c

+ 4
- 0
src/core/fbcon.c Прегледај датотеку

@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
33 33
 #include <ipxe/image.h>
34 34
 #include <ipxe/pixbuf.h>
35 35
 #include <ipxe/umalloc.h>
36
+#include <ipxe/console.h>
36 37
 #include <ipxe/fbcon.h>
37 38
 
38 39
 /**
@@ -781,6 +782,9 @@ int fbcon_init ( struct fbcon *fbcon, userptr_t start,
781 782
 	/* Clear screen */
782 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 788
 	return 0;
785 789
 
786 790
 	ufree ( fbcon->picture.start );

Loading…
Откажи
Сачувај