]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/term/arc/console.c (grub_console_init_output): Add one since
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 26 Jun 2012 21:34:32 +0000 (23:34 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 26 Jun 2012 21:34:32 +0000 (23:34 +0200)
the value returned by firmware is the maximal position, not diumension.
(grub_terminfo_output_state): Use a more sane fallback.

ChangeLog
grub-core/term/arc/console.c

index 5119ea37992a34a2d4a035a7d6f9b68b29ee11e8..b746cb1977515e704e37a79004a36b7ce397f201 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * 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.
+
 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
index e289ec8501dbf1d286db4af8241772ba1ff53c9b..45ff26760a2e8b7b1b0bf7a16c7738b2d4c08999 100644 (file)
@@ -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 =