2018-03-15 19:05:59 +00:00
|
|
|
From 79e679458cc2e70d0097cfc702668976fe1fdc5d Mon Sep 17 00:00:00 2001
|
2013-06-07 18:03:56 +00:00
|
|
|
From: William Jon McCann <william.jon.mccann@gmail.com>
|
|
|
|
Date: Wed, 15 May 2013 16:47:33 -0400
|
2018-03-16 19:23:37 +00:00
|
|
|
Subject: [PATCH 103/216] Don't draw a border around the menu
|
2013-06-07 18:03:56 +00:00
|
|
|
|
|
|
|
It looks cleaner without it.
|
|
|
|
---
|
2014-01-06 16:39:16 +00:00
|
|
|
grub-core/normal/menu_text.c | 43 -------------------------------------------
|
|
|
|
1 file changed, 43 deletions(-)
|
2013-06-07 18:03:56 +00:00
|
|
|
|
|
|
|
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
|
2018-02-27 18:56:41 +00:00
|
|
|
index 452d55bf9ff..1ed2bd92cf8 100644
|
2013-06-07 18:03:56 +00:00
|
|
|
--- a/grub-core/normal/menu_text.c
|
|
|
|
+++ b/grub-core/normal/menu_text.c
|
2014-01-06 16:39:16 +00:00
|
|
|
@@ -108,47 +108,6 @@ grub_print_message_indented (const char *msg, int margin_left, int margin_right,
|
2013-06-07 18:03:56 +00:00
|
|
|
grub_print_message_indented_real (msg, margin_left, margin_right, term, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
-static void
|
|
|
|
-draw_border (struct grub_term_output *term, const struct grub_term_screen_geometry *geo)
|
|
|
|
-{
|
|
|
|
- int i;
|
|
|
|
-
|
|
|
|
- grub_term_setcolorstate (term, GRUB_TERM_COLOR_NORMAL);
|
|
|
|
-
|
2014-01-06 16:39:16 +00:00
|
|
|
- grub_term_gotoxy (term, (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
|
- geo->first_entry_y - 1 });
|
2013-06-07 18:03:56 +00:00
|
|
|
- grub_putcode (GRUB_UNICODE_CORNER_UL, term);
|
|
|
|
- for (i = 0; i < geo->entry_width + 1; i++)
|
|
|
|
- grub_putcode (GRUB_UNICODE_HLINE, term);
|
|
|
|
- grub_putcode (GRUB_UNICODE_CORNER_UR, term);
|
|
|
|
-
|
|
|
|
- for (i = 0; i < geo->num_entries; i++)
|
|
|
|
- {
|
2014-01-06 16:39:16 +00:00
|
|
|
- grub_term_gotoxy (term, (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
|
- geo->first_entry_y + i });
|
2013-06-07 18:03:56 +00:00
|
|
|
- grub_putcode (GRUB_UNICODE_VLINE, term);
|
2014-01-06 16:39:16 +00:00
|
|
|
- grub_term_gotoxy (term,
|
|
|
|
- (struct grub_term_coordinate) { geo->first_entry_x + geo->entry_width + 1,
|
|
|
|
- geo->first_entry_y + i });
|
2013-06-07 18:03:56 +00:00
|
|
|
- grub_putcode (GRUB_UNICODE_VLINE, term);
|
|
|
|
- }
|
|
|
|
-
|
2014-01-06 16:39:16 +00:00
|
|
|
- grub_term_gotoxy (term,
|
|
|
|
- (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
|
- geo->first_entry_y - 1 + geo->num_entries + 1 });
|
2013-06-07 18:03:56 +00:00
|
|
|
- grub_putcode (GRUB_UNICODE_CORNER_LL, term);
|
|
|
|
- for (i = 0; i < geo->entry_width + 1; i++)
|
|
|
|
- grub_putcode (GRUB_UNICODE_HLINE, term);
|
|
|
|
- grub_putcode (GRUB_UNICODE_CORNER_LR, term);
|
|
|
|
-
|
|
|
|
- grub_term_setcolorstate (term, GRUB_TERM_COLOR_NORMAL);
|
|
|
|
-
|
2014-01-06 16:39:16 +00:00
|
|
|
- grub_term_gotoxy (term,
|
|
|
|
- (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
|
- (geo->first_entry_y - 1 + geo->num_entries
|
|
|
|
- + GRUB_TERM_MARGIN + 1) });
|
2013-06-07 18:03:56 +00:00
|
|
|
-}
|
|
|
|
-
|
|
|
|
static int
|
|
|
|
print_message (int nested, int edit, struct grub_term_output *term, int dry_run)
|
|
|
|
{
|
2015-07-22 13:44:51 +00:00
|
|
|
@@ -406,8 +365,6 @@ grub_menu_init_page (int nested, int edit,
|
2013-06-07 18:03:56 +00:00
|
|
|
|
|
|
|
grub_term_normal_color = grub_color_menu_normal;
|
|
|
|
grub_term_highlight_color = grub_color_menu_highlight;
|
|
|
|
- if (geo->border)
|
|
|
|
- draw_border (term, geo);
|
|
|
|
grub_term_normal_color = old_color_normal;
|
|
|
|
grub_term_highlight_color = old_color_highlight;
|
|
|
|
geo->timeout_y = geo->first_entry_y + geo->num_entries
|
|
|
|
--
|
2018-02-27 18:56:41 +00:00
|
|
|
2.15.0
|
2013-06-07 18:03:56 +00:00
|
|
|
|