nalika / rpms / grub2

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