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