From a6d176e62f7b6c03e680287972b95dae59bef125 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 24 Apr 2013 15:07:24 +0200 Subject: [PATCH 340/364] * grub-core/normal/menu_text.c (print_entry): Put an asterisk in front of chosen entry to mark it even if highlighting is lost. --- ChangeLog | 5 +++++ grub-core/normal/menu_text.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5854326..7e29788 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2013-04-24 Vladimir Serbinenko + * grub-core/normal/menu_text.c (print_entry): Put an asterisk + in front of chosen entry to mark it even if highlighting is lost. + +2013-04-24 Vladimir Serbinenko + * grub-core/loader/i386/linux.c (grub_linux_boot): Default to gfxpayload=keep if cbfb is active. diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c index 0031b0c..e1d3c8f 100644 --- a/grub-core/normal/menu_text.c +++ b/grub-core/normal/menu_text.c @@ -242,7 +242,7 @@ print_entry (int y, int highlight, grub_menu_entry_t entry, || unicode_title[i] == '\r' || unicode_title[i] == '\e') unicode_title[i] = ' '; - for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 1, i = 0; + for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 2, i = 0; x < (int) (GRUB_TERM_LEFT_BORDER_X + grub_term_border_width (term) - GRUB_TERM_MARGIN);) { @@ -269,6 +269,8 @@ print_entry (int y, int highlight, grub_menu_entry_t entry, break; } + grub_putcode (highlight ? '*' : ' ', term); + grub_print_ucs4 (unicode_title, unicode_title + last_printed, 0, 0, term); -- 1.8.1.4