mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
* grub-core/term/arc/console.c (grub_console_init_output): Add one since
the value returned by firmware is the maximal position, not diumension. (grub_terminfo_output_state): Use a more sane fallback.
This commit is contained in:
1 parent
392a603b67
commit
73a68bcb3a
2 files changed
+9
-3
No files matched your search
@@ -61,8 +61,8 @@ grub_console_init_output (struct grub_term_output *term)
|
||||
info = GRUB_ARC_FIRMWARE_VECTOR->getdisplaystatus (GRUB_ARC_STDOUT);
|
||||
if (info)
|
||||
{
|
||||
grub_console_terminfo_output.width = info->w;
|
||||
grub_console_terminfo_output.height = info->h;
|
||||
grub_console_terminfo_output.width = info->w + 1;
|
||||
grub_console_terminfo_output.height = info->h + 1;
|
||||
}
|
||||
grub_terminfo_output_init (term);
|
||||
|
||||
@@ -78,7 +78,7 @@ static struct grub_terminfo_output_state grub_console_terminfo_output =
|
||||
{
|
||||
.put = put,
|
||||
.width = 80,
|
||||
.height = 36
|
||||
.height = 20
|
||||
};
|
||||
|
||||
static struct grub_term_input grub_console_term_input =
|
||||
|
||||
Reference in new issue
Block a user