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