mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
bogus SLOF values.
This commit is contained in:
1 parent
6aff01075d
commit
65a6b30b47
2 files changed
+13
No files matched your search
@@ -123,6 +123,14 @@ grub_console_dimensions (void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Bogus default value on SLOF in QEMU. */
|
||||
if (grub_console_terminfo_output.width == 200
|
||||
&& grub_console_terminfo_output.height == 200)
|
||||
{
|
||||
grub_console_terminfo_output.width = 80;
|
||||
grub_console_terminfo_output.height = 24;
|
||||
}
|
||||
|
||||
/* Use a small console by default. */
|
||||
if (! grub_console_terminfo_output.width)
|
||||
grub_console_terminfo_output.width = 80;
|
||||
|
||||
Reference in new issue
Block a user