* grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore

	bogus SLOF values.
parent 6aff0107
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>
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. */
if (! grub_console_terminfo_output.width)
grub_console_terminfo_output.width = 80;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment