nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0042-Don-t-draw-a-border-around-the-menu.patch

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