Преглед на файлове

[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…
Отказ
Запис