From: "Dandan Bi" <dandan.bi@intel.com>
To: Abdul Lateef Attar <abdul@marvell.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Dong, Eric" <eric.dong@intel.com>,
"Wang, Jian J" <jian.j.wang@intel.com>,
"Wu, Hao A" <hao.a.wu@intel.com>
Subject: Re: [PATCH] MdeModulePkg: Sets the Cursor to selected BootOption.
Date: Thu, 7 May 2020 08:52:28 +0000 [thread overview]
Message-ID: <CY4PR11MB1477C9BECB6060299539AB85EAA50@CY4PR11MB1477.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20200420070555.23046-1-abdul@marvell.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Thanks,
Dandan
> -----Original Message-----
> From: Abdul Lateef Attar <abdul@marvell.com>
> Sent: Monday, April 20, 2020 3:06 PM
> To: devel@edk2.groups.io
> Cc: Bi, Dandan <dandan.bi@intel.com>; Dong, Eric <eric.dong@intel.com>;
> Wang, Jian J <jian.j.wang@intel.com>; Wu, Hao A <hao.a.wu@intel.com>;
> Abdul Lateef Attar <abdul@marvell.com>
> Subject: [PATCH] MdeModulePkg: Sets the Cursor to selected BootOption.
>
> Its been observed that in MenuManagerMenuApp when user selects a
> different BootOption using Up/Down key, the current Cursor position is not
> chaning.
> Still points to the old BootOption.
>
> This changes first dispalys/redraws the old BootOption followed by new
> BootOption. Doing so will make current cursor pointing to the user selected
> BootOption.
>
> Signed-off-by: Abdul Lateef Attar <abdul@marvell.com>
> ---
> .../BootManagerMenuApp/BootManagerMenu.c | 22 +++++++++++---
> --------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git
> a/MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.
> c
> b/MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.
> c
> index 34d4089a55..9e729074ec 100644
> ---
> a/MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.
> c
> +++
> b/MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.
> c
> @@ -451,20 +451,10 @@ BootMenuSelectItem (
> }
>
> //
> - // Print want to select item
> - //
> - FirstItem = BootMenuData->ScrollBarControl.FirstItem;
> - gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE |
> EFI_BACKGROUND_BLACK);
> - String = HiiGetString (gStringPackHandle, BootMenuData-
> >PtrTokens[WantSelectItem], NULL);
> - PrintCol = StartCol + 1;
> - PrintRow = StartRow + TITLE_TOKEN_COUNT + 2 + WantSelectItem -
> FirstItem;
> - PrintStringAt (PrintCol, PrintRow, String);
> - FreePool (String);
> -
> - //
> // if Want Select and selected item isn't the same and doesn't re-draw
> selectable
> // items, clear select item
> //
> + FirstItem = BootMenuData->ScrollBarControl.FirstItem;
> if (WantSelectItem != BootMenuData->SelectItem && !RePaintItems) {
> gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE |
> EFI_BACKGROUND_BLUE);
> String = HiiGetString (gStringPackHandle, BootMenuData-
> >PtrTokens[BootMenuData->SelectItem], NULL); @@ -474,6 +464,16 @@
> BootMenuSelectItem (
> FreePool (String);
> }
>
> + //
> + // Print want to select item
> + //
> + gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE |
> + EFI_BACKGROUND_BLACK); String = HiiGetString (gStringPackHandle,
> + BootMenuData->PtrTokens[WantSelectItem], NULL); PrintCol = StartCol
> + + 1; PrintRow = StartRow + TITLE_TOKEN_COUNT + 2 + WantSelectItem -
> + FirstItem; PrintStringAt (PrintCol, PrintRow, String); FreePool
> + (String);
> +
> gST->ConOut->SetAttribute (gST->ConOut, SavedAttribute);
> BootMenuData->SelectItem = WantSelectItem;
> return EFI_SUCCESS;
> --
> 2.11.0
next prev parent reply other threads:[~2020-05-07 8:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 7:05 [PATCH] MdeModulePkg: Sets the Cursor to selected BootOption Abdul Lateef Attar
2020-05-07 8:52 ` Dandan Bi [this message]
[not found] ` <160CB30545BDC239.3224@groups.io>
2020-06-08 7:18 ` [edk2-devel] " Dandan Bi
2020-06-10 5:31 ` Dandan Bi
-- strict thread matches above, loose matches on Subject: below --
2020-06-09 4:22 Abdul Lateef Attar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CY4PR11MB1477C9BECB6060299539AB85EAA50@CY4PR11MB1477.namprd11.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox