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