X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FHiiDatabaseDxe%2FFont.c;h=5d31f7513fc95ec0031636457925096c49f4a7ea;hp=56b30ff6ffe3416c74fc02c2919162be649d8146;hb=0672c2cdfebd35af3e68fe0b54408852bf314759;hpb=3ab41b7a325ca11a12b42f5ad1661c4b6791cb49 diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c index 56b30ff6ff..5d31f7513f 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c @@ -1613,6 +1613,7 @@ HiiStringToImage ( UINTN StrLength; EFI_GRAPHICS_OUTPUT_BLT_PIXEL *RowBufferPtr; HII_GLOBAL_FONT_INFO *GlobalFont; + UINT32 PreInitBkgnd; // // Check incoming parameters. @@ -2049,6 +2050,11 @@ HiiStringToImage ( goto Exit; } // + // Initialize the background color. + // + PreInitBkgnd = Background.Blue | Background.Green << 8 | Background.Red << 16; + SetMem32 (BltBuffer,RowInfo[RowIndex].LineWidth * RowInfo[RowIndex].LineHeight * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL),PreInitBkgnd); + // // Set BufferPtr to Origin by adding baseline to the starting position. // BufferPtr = BltBuffer + BaseLine * RowInfo[RowIndex].LineWidth;