nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0120-Use-the-standard-margin-for-the-timeout-string.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: William Jon McCann <william.jon.mccann@gmail.com>
f725e3
Date: Fri, 7 Jun 2013 10:52:32 -0400
f725e3
Subject: [PATCH] Use the standard margin for the timeout string
f725e3
f725e3
So that it aligns with the other messages
f725e3
---
f725e3
 grub-core/normal/menu_text.c | 6 +++---
f725e3
 1 file changed, 3 insertions(+), 3 deletions(-)
f725e3
f725e3
diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c
f725e3
index beddd7f81c1..33b208bcf44 100644
f725e3
--- a/grub-core/normal/menu_text.c
f725e3
+++ b/grub-core/normal/menu_text.c
f725e3
@@ -369,7 +369,7 @@ grub_menu_init_page (int nested, int edit,
f725e3
   if (bottom_message)
f725e3
     {
f725e3
       grub_term_gotoxy (term,
f725e3
-			(struct grub_term_coordinate) { GRUB_TERM_MARGIN,
f725e3
+			(struct grub_term_coordinate) { STANDARD_MARGIN,
f725e3
 			    geo->timeout_y });
f725e3
 
f725e3
       print_message (nested, edit, term, 0);
f725e3
@@ -404,14 +404,14 @@ menu_text_print_timeout (int timeout, void *dataptr)
f725e3
   if (data->timeout_msg == TIMEOUT_UNKNOWN)
f725e3
     {
f725e3
       data->timeout_msg = grub_print_message_indented_real (msg_translated,
f725e3
-							    3, 1, data->term, 1)
f725e3
+							    STANDARD_MARGIN, 1, data->term, 1)
f725e3
 	<= data->geo.timeout_lines ? TIMEOUT_NORMAL : TIMEOUT_TERSE;
f725e3
       if (data->timeout_msg == TIMEOUT_TERSE)
f725e3
 	{
f725e3
 	  grub_free (msg_translated);
f725e3
 	  msg_translated = grub_xasprintf (_("%ds"), timeout);
f725e3
 	  if (grub_term_width (data->term) < 10)
f725e3
-	    data->timeout_msg = TIMEOUT_TERSE_NO_MARGIN;
f725e3
+	    data->timeout_msg = STANDARD_MARGIN;
f725e3
 	}
f725e3
     }
f725e3