Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Jordan Justen <[email protected]>
---
.../Application/BltLibSample/BltLibSample.c | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/OptionRomPkg/Application/BltLibSample/BltLibSample.c
b/OptionRomPkg/Application/BltLibSample/BltLibSample.c
index c21eb7a..09fea62 100644
--- a/OptionRomPkg/Application/BltLibSample/BltLibSample.c
+++ b/OptionRomPkg/Application/BltLibSample/BltLibSample.c
@@ -238,9 +238,40 @@ TestColor (
BltLibVideoFill (&Color, X, Y, 1, 1);
}
}
+
+ gBS->Stall (1000 * 1000);
}
+VOID
+TestMove1 (
+ UINT32 HorizontalResolution,
+ UINT32 VerticalResolution
+ )
+{
+ EFI_GRAPHICS_OUTPUT_BLT_PIXEL Blue;
+ EFI_GRAPHICS_OUTPUT_BLT_PIXEL Black;
+ UINTN X, Y;
+ UINTN Width;
+ UINTN Height;
+
+ *(UINT32 *) &Black = 0;
+ Width = 100;
+ Height = 20;
+
+ BltLibVideoFill (&Black, 0, 0, HorizontalResolution, VerticalResolution);
+
+ *(UINT32 *) &Blue = 0;
+ Blue.Blue = 0xff;
+ BltLibVideoFill (&Blue, 0, 0, Width, Height);
+
+ for (X = 1, Y = 1; X < HorizontalResolution && Y < VerticalResolution; X++,
Y++) {
+ BltLibVideoToVideo (X - 1, Y - 1, X, Y, Width, Height);
+ gBS->Stall (100);
+ }
+ gBS->Stall (1000 * 1000 * 2);
+}
+
/**
The user Entry Point for Application. The user code starts with this function
as the real entry point for the application.
@@ -283,5 +314,7 @@ UefiMain (
TestColor ();
+ TestMove1 (Gop->Mode->Info->HorizontalResolution,
Gop->Mode->Info->VerticalResolution);
+
return EFI_SUCCESS;
}
--
2.8.3.windows.1
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel