nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0030-Fix-margins.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: William Jon McCann <william.jon.mccann@gmail.com>
5593c8
Date: Fri, 7 Jun 2013 14:59:36 -0400
5593c8
Subject: [PATCH] Fix margins
5593c8
5593c8
---
5593c8
 grub-core/normal/menu_text.c | 8 +++-----
5593c8
 1 file changed, 3 insertions(+), 5 deletions(-)
5593c8
5593c8
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
d3c3ab
index 6a57376fa80..cbd62f714cb 100644
5593c8
--- a/grub-core/normal/menu_text.c
5593c8
+++ b/grub-core/normal/menu_text.c
5593c8
@@ -333,17 +333,15 @@ grub_menu_init_page (int nested, int edit,
5593c8
   int version_msg = 1;
5593c8
 
5593c8
   geo->border = 0;
5593c8
-  geo->first_entry_x = 0 /* margin */ + 0 /* border */;
5593c8
-  geo->entry_width = grub_term_width (term) - 5;
5593c8
+  geo->first_entry_x = 0; /* no margin */
5593c8
+  geo->entry_width = grub_term_width (term) - 1;
5593c8
 
5593c8
-  geo->first_entry_y = 2 /* two empty lines*/
5593c8
-    + 0 /* GNU GRUB version text  */ + 1 /* top border */;
5593c8
+  geo->first_entry_y = 3; /* three empty lines*/
5593c8
 
5593c8
   geo->timeout_lines = 2;
5593c8
 
5593c8
   /* 3 lines for timeout message and bottom margin.  2 lines for the border.  */
5593c8
   geo->num_entries = grub_term_height (term) - geo->first_entry_y
5593c8
-    - 1 /* bottom border */
5593c8
     - 1 /* empty line before info message*/
5593c8
     - geo->timeout_lines /* timeout */
5593c8
     - 1 /* empty final line  */;