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