From 0275f6563689be0bc0b2935c0977424809bfeded Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 28 Apr 2022 02:31:04 +0300 Subject: graphics: add the getting font parameters routine --- UefiMonitorTest/Graphics.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'UefiMonitorTest/Graphics.c') diff --git a/UefiMonitorTest/Graphics.c b/UefiMonitorTest/Graphics.c index 7c76e37..2efbbdd 100644 --- a/UefiMonitorTest/Graphics.c +++ b/UefiMonitorTest/Graphics.c @@ -447,6 +447,22 @@ DrawChar ( } } +EFI_STATUS +GetFontParameters ( + IN GRAPHICS_CONTEXT *Graphics, + OUT UINTN *FontWidth, + OUT UINTN *FontHeight + ) +{ + ASSERT (FontWidth != NULL); + ASSERT (FontHeight != NULL); + + *FontWidth = SYSTEM8X16_FONT_WIDTH; + *FontHeight = SYSTEM8X16_FONT_HEIGHT; + + return EFI_SUCCESS; +} + /** Draws output based on a null-terminated Unicode format string and a arguments list to the screen -- cgit v1.2.3-18-g5258