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