mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
sync Print functions with MdePkg counterpart.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8093 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
51969ecb37
commit
e115460bd7
@ -306,9 +306,9 @@ AsciiErrorPrint (
|
|||||||
If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no
|
If the EFI_HII_FONT_PROTOCOL is not present in the handle database, then no
|
||||||
string is printed, and 0 is returned.
|
string is printed, and 0 is returned.
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param Foreground The forground color of the string being printed. This is
|
@param Foreground The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
in the EFI_SYSTEM_TABLE is used.
|
in the EFI_SYSTEM_TABLE is used.
|
||||||
@ -325,8 +325,8 @@ AsciiErrorPrint (
|
|||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
InternalPrintGraphic (
|
InternalPrintGraphic (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground,
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Foreground,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background,
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background,
|
||||||
IN CHAR16 *Buffer,
|
IN CHAR16 *Buffer,
|
||||||
@ -393,7 +393,7 @@ InternalPrintGraphic (
|
|||||||
if (GraphicsOutput != NULL) {
|
if (GraphicsOutput != NULL) {
|
||||||
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
|
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
|
||||||
VerticalResolution = GraphicsOutput->Mode->Info->VerticalResolution;
|
VerticalResolution = GraphicsOutput->Mode->Info->VerticalResolution;
|
||||||
} else if (FeaturePcdGet (PcdUgaConsumeSupport) && UgaDraw != NULL) {
|
} else if (UgaDraw != NULL && FeaturePcdGet (PcdUgaConsumeSupport)) {
|
||||||
UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate);
|
UgaDraw->GetMode (UgaDraw, &HorizontalResolution, &VerticalResolution, &ColorDepth, &RefreshRate);
|
||||||
} else {
|
} else {
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
@ -459,14 +459,15 @@ InternalPrintGraphic (
|
|||||||
Buffer,
|
Buffer,
|
||||||
&FontInfo,
|
&FontInfo,
|
||||||
&Blt,
|
&Blt,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
} else if (FeaturePcdGet (PcdUgaConsumeSupport) && UgaDraw != NULL) {
|
} else if (FeaturePcdGet (PcdUgaConsumeSupport)) {
|
||||||
|
ASSERT (UgaDraw!= NULL);
|
||||||
|
|
||||||
Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
|
Blt->Image.Bitmap = AllocateZeroPool (Blt->Width * Blt->Height * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
|
||||||
ASSERT (Blt->Image.Bitmap != NULL);
|
ASSERT (Blt->Image.Bitmap != NULL);
|
||||||
@ -482,8 +483,8 @@ InternalPrintGraphic (
|
|||||||
Buffer,
|
Buffer,
|
||||||
&FontInfo,
|
&FontInfo,
|
||||||
&Blt,
|
&Blt,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
&RowInfoArray,
|
&RowInfoArray,
|
||||||
&RowInfoArraySize,
|
&RowInfoArraySize,
|
||||||
NULL
|
NULL
|
||||||
@ -501,10 +502,10 @@ InternalPrintGraphic (
|
|||||||
UgaDraw,
|
UgaDraw,
|
||||||
(EFI_UGA_PIXEL *) Blt->Image.Bitmap,
|
(EFI_UGA_PIXEL *) Blt->Image.Bitmap,
|
||||||
EfiUgaBltBufferToVideo,
|
EfiUgaBltBufferToVideo,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
X,
|
PointX,
|
||||||
Y,
|
PointY,
|
||||||
RowInfoArray[0].LineWidth,
|
RowInfoArray[0].LineWidth,
|
||||||
RowInfoArray[0].LineHeight,
|
RowInfoArray[0].LineHeight,
|
||||||
Blt->Width * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL)
|
Blt->Width * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL)
|
||||||
@ -548,9 +549,9 @@ Error:
|
|||||||
If Format is NULL, then ASSERT().
|
If Format is NULL, then ASSERT().
|
||||||
If Format is not aligned on a 16-bit boundary, then ASSERT().
|
If Format is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param ForeGround The forground color of the string being printed. This is
|
@param ForeGround The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
in the EFI_SYSTEM_TABLE is used.
|
in the EFI_SYSTEM_TABLE is used.
|
||||||
@ -569,8 +570,8 @@ Error:
|
|||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PrintXY (
|
PrintXY (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
||||||
IN CONST CHAR16 *Format,
|
IN CONST CHAR16 *Format,
|
||||||
@ -595,7 +596,7 @@ PrintXY (
|
|||||||
|
|
||||||
PrintNum = UnicodeVSPrint (Buffer, BufferSize, Format, Marker);
|
PrintNum = UnicodeVSPrint (Buffer, BufferSize, Format, Marker);
|
||||||
|
|
||||||
ReturnNum = InternalPrintGraphic (X, Y, ForeGround, BackGround, Buffer, PrintNum);
|
ReturnNum = InternalPrintGraphic (PointX, PointY, ForeGround, BackGround, Buffer, PrintNum);
|
||||||
|
|
||||||
FreePool (Buffer);
|
FreePool (Buffer);
|
||||||
|
|
||||||
@ -621,9 +622,9 @@ PrintXY (
|
|||||||
string is printed, and 0 is returned.
|
string is printed, and 0 is returned.
|
||||||
If Format is NULL, then ASSERT().
|
If Format is NULL, then ASSERT().
|
||||||
|
|
||||||
@param X X coordinate to print the string.
|
@param PointX X coordinate to print the string.
|
||||||
@param Y Y coordinate to print the string.
|
@param PointY Y coordinate to print the string.
|
||||||
@param ForeGround The forground color of the string being printed. This is
|
@param ForeGround The foreground color of the string being printed. This is
|
||||||
an optional parameter that may be NULL. If it is NULL,
|
an optional parameter that may be NULL. If it is NULL,
|
||||||
then the foreground color of the current ConOut device
|
then the foreground color of the current ConOut device
|
||||||
in the EFI_SYSTEM_TABLE is used.
|
in the EFI_SYSTEM_TABLE is used.
|
||||||
@ -642,8 +643,8 @@ PrintXY (
|
|||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiPrintXY (
|
AsciiPrintXY (
|
||||||
IN UINTN X,
|
IN UINTN PointX,
|
||||||
IN UINTN Y,
|
IN UINTN PointY,
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *ForeGround, OPTIONAL
|
||||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BackGround, OPTIONAL
|
||||||
IN CONST CHAR8 *Format,
|
IN CONST CHAR8 *Format,
|
||||||
@ -667,7 +668,7 @@ AsciiPrintXY (
|
|||||||
|
|
||||||
PrintNum = UnicodeSPrintAsciiFormat (Buffer, BufferSize, Format, Marker);
|
PrintNum = UnicodeSPrintAsciiFormat (Buffer, BufferSize, Format, Marker);
|
||||||
|
|
||||||
ReturnNum = InternalPrintGraphic (X, Y, ForeGround, BackGround, Buffer, PrintNum);
|
ReturnNum = InternalPrintGraphic (PointX, PointY, ForeGround, BackGround, Buffer, PrintNum);
|
||||||
|
|
||||||
FreePool (Buffer);
|
FreePool (Buffer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user