dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0111-Fix-margins.patch

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