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