From nobody Fri May 3 09:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+57614+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57614+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=marvell.com ARC-Seal: i=1; a=rsa-sha256; t=1587381883; cv=none; d=zohomail.com; s=zohoarc; b=YKKSRwLZqaJ2dAIfi9I9fDpwcNESGmPl3WWRHccTuU0lN/JEBSs+5MAi2GCR3QcagzKCu+ID8PgMBtxj2X+XkjaIK6Zh3/ZcB8ahP5BMknS4AvyVIu3dbvXSbIrH+MVjA+VpGcuhy0ZtY7zFstB1W0ALRrrS4qtJQaOSf3yatOs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587381883; h=Content-Type:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=vhoO6UT0PaSqxRmaey5Y6D4B0+TvVYY5C8VSyqjqQyY=; b=B0Ae+gBHg3L4OAHJQ73XXCnI95WkY+ZtZolVW2xHcDqRGfKqhp0eflyYqtSNyC33ZiAG6VnhOlp6vbaS5ovR0CacSU7xySH5S0u99MhCtUPikYbiJZwBHOEKCeKCaQYXrWjnSheAakQHWtBjfomPXw1cBwBPChkH4rqzMHSt6VI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57614+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1587381883705276.6404903737372; Mon, 20 Apr 2020 04:24:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id BZcMYY1788612xeBmWAly3L0; Mon, 20 Apr 2020 04:24:43 -0700 X-Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.148.174]) by mx.groups.io with SMTP id smtpd.web12.1301.1587366287723985899 for ; Mon, 20 Apr 2020 00:04:47 -0700 X-Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03K71D57004559; Mon, 20 Apr 2020 00:04:47 -0700 X-Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 30fxwp63yg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 20 Apr 2020 00:04:47 -0700 X-Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 20 Apr 2020 00:04:46 -0700 X-Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 20 Apr 2020 00:04:45 -0700 X-Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 20 Apr 2020 00:04:45 -0700 X-Received: from DarkNight.caveonetworks.com (unknown [10.109.136.103]) by maili.marvell.com (Postfix) with ESMTP id EE52A3F703F; Mon, 20 Apr 2020 00:04:44 -0700 (PDT) From: "Abdul Lateef Attar" To: CC: , , , , Abdul Lateef Attar Subject: [edk2-devel] [PATCH] MdeModulePkg: Sets the Cursor to selected BootOption. Date: Mon, 20 Apr 2020 00:05:55 -0700 Message-ID: <20200420070555.23046-1-abdul@marvell.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abdul@marvell.com X-Gm-Message-State: 4qdZh2sa11uTCF12jccHzwnLx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1587381883; bh=IlGrKJ72jlZEn8fFkQCsPKgHhGSHN+HskBxniAHjY6w=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Vn2nIJsdrRo/ntlijSZJK1QuDtR7DIZJiuZDtHey0PhabbiYynvfBaYrxoHhEGSDenf 0oaROh6HkGSkvANDi69DfXNm5/akU+6gWYPczibOqmKPosqPfnFLYGbbbv9WMLw8YMX4U pbdKtECO6Vkyr9mUqxLAKxhAdJUSmub3674= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Dandan Bi --- .../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 ( } =20 // - // Print want to select item - // - FirstItem =3D BootMenuData->ScrollBarControl.FirstItem; - gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE | EFI_BACKGROUND_BLACK= ); - String =3D HiiGetString (gStringPackHandle, BootMenuData->PtrTokens[Want= SelectItem], NULL); - PrintCol =3D StartCol + 1; - PrintRow =3D StartRow + TITLE_TOKEN_COUNT + 2 + WantSelectItem - FirstIt= em; - PrintStringAt (PrintCol, PrintRow, String); - FreePool (String); - - // // if Want Select and selected item isn't the same and doesn't re-draw s= electable // items, clear select item // + FirstItem =3D BootMenuData->ScrollBarControl.FirstItem; if (WantSelectItem !=3D BootMenuData->SelectItem && !RePaintItems) { gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE | EFI_BACKGROUND_BLU= E); String =3D HiiGetString (gStringPackHandle, BootMenuData->PtrTokens[Bo= otMenuData->SelectItem], NULL); @@ -474,6 +464,16 @@ BootMenuSelectItem ( FreePool (String); } =20 + // + // Print want to select item + // + gST->ConOut->SetAttribute (gST->ConOut, EFI_WHITE | EFI_BACKGROUND_BLACK= ); + String =3D HiiGetString (gStringPackHandle, BootMenuData->PtrTokens[Want= SelectItem], NULL); + PrintCol =3D StartCol + 1; + PrintRow =3D StartRow + TITLE_TOKEN_COUNT + 2 + WantSelectItem - FirstIt= em; + PrintStringAt (PrintCol, PrintRow, String); + FreePool (String); + gST->ConOut->SetAttribute (gST->ConOut, SavedAttribute); BootMenuData->SelectItem =3D WantSelectItem; return EFI_SUCCESS; --=20 2.11.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#57614): https://edk2.groups.io/g/devel/message/57614 Mute This Topic: https://groups.io/mt/73146931/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-