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