From a6a2a95632172022229f0c3d20f0b9adb15dc2fa Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Fri, 22 Nov 2013 07:14:53 +0000 Subject: [PATCH] Adjust skip value when paint text two string for text opcode. Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14888 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c index fffc67d695..1b754cf82b 100644 --- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c +++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.c @@ -1855,6 +1855,12 @@ DisplayOneMenu ( if (StrLen (&StringPtr[Index]) != 0) { if (Temp3 == 0) { Row++; + // + // If the rows for text two is greater than or equal to the skip value, increase the skip value + // + if ((Row - MenuOption->Row) >= MenuOption->Skip) { + MenuOption->Skip++; + } } } -- 2.39.2