mirror of https://github.com/acidanthera/audk.git
DisplayEngineDxe: Fixed calculate help string page count error.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18348 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fbce471eb1
commit
92f62cfe0a
|
@ -2949,7 +2949,7 @@ UiDisplayMenu (
|
|||
//
|
||||
if (HelpLine > 2 * RowCount - 2) {
|
||||
HelpPageCount = (HelpLine - RowCount + 1) / (RowCount - 2) + 1;
|
||||
if ((HelpLine - RowCount + 1) % (RowCount - 2) > 1) {
|
||||
if ((HelpLine - RowCount + 1) % (RowCount - 2) != 0) {
|
||||
HelpPageCount += 1;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue