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