refine the implementation of HiiStringToImage:
commit2cdc450a18e49288f72f7ae93d9ddfd8e03a66b5
authortian, feng <eric_tian@tianocore.org>
Thu, 21 May 2009 09:41:59 +0000 (21 09:41 +0000)
committertian, feng <eric_tian@tianocore.org>
Thu, 21 May 2009 09:41:59 +0000 (21 09:41 +0000)
tree19bff0108c60d30ce2cadb77e6501b165779bfc8
parentf1e012b6910ff1259a55141be3751475746680b6
refine the implementation of HiiStringToImage:
1. Remove the limitation of MAX_STRING_LENGTH and according to actual string length to store glyph info
2. fix a issue when print multi-lines, the next line will overlaps the above line. The original implementation doesn't recalculate the start point of X/Y axis.
3. refine the flow to avoid the meaningless recursive call.
4. modify the usage of "Index" to force them 1/1 mapping between glyphbuf and string. So the RowInfoArray and ColumnInfoArray can reflect the actual situation.
MdeModulePkg/Universal/HiiDatabaseDxe/Font.c