* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
bogus SLOF values.
This commit is contained in:
parent
6aff01075d
commit
65a6b30b47
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
|
||||||
|
bogus SLOF values.
|
||||||
|
|
||||||
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Make check work on mips-arc.
|
Make check work on mips-arc.
|
||||||
|
|
|
@ -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. */
|
/* Use a small console by default. */
|
||||||
if (! grub_console_terminfo_output.width)
|
if (! grub_console_terminfo_output.width)
|
||||||
grub_console_terminfo_output.width = 80;
|
grub_console_terminfo_output.width = 80;
|
||||||
|
|
Loading…
Reference in a new issue