diff options
author | Eric Dong <eric.dong@intel.com> | 2015-08-28 04:28:05 +0000 |
---|---|---|
committer | ydong10 <ydong10@Edk2> | 2015-08-28 04:28:05 +0000 |
commit | 92f62cfe0a74eaea750104249761f207e8755e88 (patch) | |
tree | 7622531f6402a5e5951f506d4e2ec45fe03dd4ab /MdeModulePkg/Universal/DisplayEngineDxe | |
parent | fbce471eb1d72a5d2a3c1214b7bcc73c577d5b71 (diff) | |
download | edk2-platforms-92f62cfe0a74eaea750104249761f207e8755e88.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/DisplayEngineDxe')
-rw-r--r-- | MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index 938cce4141..a391442d16 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -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 {
|