|
|
5593c8 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
5593c8 |
From: William Jon McCann <william.jon.mccann@gmail.com>
|
|
|
5593c8 |
Date: Wed, 15 May 2013 16:47:33 -0400
|
|
|
5593c8 |
Subject: [PATCH] Don't draw a border around the menu
|
|
|
5593c8 |
|
|
|
5593c8 |
It looks cleaner without it.
|
|
|
5593c8 |
---
|
|
|
5593c8 |
grub-core/normal/menu_text.c | 43 -------------------------------------------
|
|
|
5593c8 |
1 file changed, 43 deletions(-)
|
|
|
5593c8 |
|
|
|
5593c8 |
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
|
|
|
d3c3ab |
index 4895ffe7d1d..e72ed438ba3 100644
|
|
|
5593c8 |
--- a/grub-core/normal/menu_text.c
|
|
|
5593c8 |
+++ b/grub-core/normal/menu_text.c
|
|
|
5593c8 |
@@ -108,47 +108,6 @@ grub_print_message_indented (const char *msg, int margin_left, int margin_right,
|
|
|
5593c8 |
grub_print_message_indented_real (msg, margin_left, margin_right, term, 0);
|
|
|
5593c8 |
}
|
|
|
5593c8 |
|
|
|
5593c8 |
-static void
|
|
|
5593c8 |
-draw_border (struct grub_term_output *term, const struct grub_term_screen_geometry *geo)
|
|
|
5593c8 |
-{
|
|
|
5593c8 |
- int i;
|
|
|
5593c8 |
-
|
|
|
5593c8 |
- grub_term_setcolorstate (term, GRUB_TERM_COLOR_NORMAL);
|
|
|
5593c8 |
-
|
|
|
5593c8 |
- grub_term_gotoxy (term, (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
5593c8 |
- geo->first_entry_y - 1 });
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_CORNER_UL, term);
|
|
|
5593c8 |
- for (i = 0; i < geo->entry_width + 1; i++)
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_HLINE, term);
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_CORNER_UR, term);
|
|
|
5593c8 |
-
|
|
|
5593c8 |
- for (i = 0; i < geo->num_entries; i++)
|
|
|
5593c8 |
- {
|
|
|
5593c8 |
- grub_term_gotoxy (term, (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
5593c8 |
- geo->first_entry_y + i });
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_VLINE, term);
|
|
|
5593c8 |
- grub_term_gotoxy (term,
|
|
|
5593c8 |
- (struct grub_term_coordinate) { geo->first_entry_x + geo->entry_width + 1,
|
|
|
5593c8 |
- geo->first_entry_y + i });
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_VLINE, term);
|
|
|
5593c8 |
- }
|
|
|
5593c8 |
-
|
|
|
5593c8 |
- grub_term_gotoxy (term,
|
|
|
5593c8 |
- (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
5593c8 |
- geo->first_entry_y - 1 + geo->num_entries + 1 });
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_CORNER_LL, term);
|
|
|
5593c8 |
- for (i = 0; i < geo->entry_width + 1; i++)
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_HLINE, term);
|
|
|
5593c8 |
- grub_putcode (GRUB_UNICODE_CORNER_LR, term);
|
|
|
5593c8 |
-
|
|
|
5593c8 |
- grub_term_setcolorstate (term, GRUB_TERM_COLOR_NORMAL);
|
|
|
5593c8 |
-
|
|
|
5593c8 |
- grub_term_gotoxy (term,
|
|
|
5593c8 |
- (struct grub_term_coordinate) { geo->first_entry_x - 1,
|
|
|
5593c8 |
- (geo->first_entry_y - 1 + geo->num_entries
|
|
|
5593c8 |
- + GRUB_TERM_MARGIN + 1) });
|
|
|
5593c8 |
-}
|
|
|
5593c8 |
-
|
|
|
5593c8 |
static int
|
|
|
5593c8 |
print_message (int nested, int edit, struct grub_term_output *term, int dry_run)
|
|
|
5593c8 |
{
|
|
|
5593c8 |
@@ -406,8 +365,6 @@ grub_menu_init_page (int nested, int edit,
|
|
|
5593c8 |
|
|
|
5593c8 |
grub_term_normal_color = grub_color_menu_normal;
|
|
|
5593c8 |
grub_term_highlight_color = grub_color_menu_highlight;
|
|
|
5593c8 |
- if (geo->border)
|
|
|
5593c8 |
- draw_border (term, geo);
|
|
|
5593c8 |
grub_term_normal_color = old_color_normal;
|
|
|
5593c8 |
grub_term_highlight_color = old_color_highlight;
|
|
|
5593c8 |
geo->timeout_y = geo->first_entry_y + geo->num_entries
|