aboutsummaryrefslogtreecommitdiffstats
path: root/UefiMonitorTest
diff options
context:
space:
mode:
Diffstat (limited to 'UefiMonitorTest')
-rw-r--r--UefiMonitorTest/Graphics.c16
-rw-r--r--UefiMonitorTest/Graphics.h7
2 files changed, 23 insertions, 0 deletions
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
diff --git a/UefiMonitorTest/Graphics.h b/UefiMonitorTest/Graphics.h
index 9e50cc4..c516576 100644
--- a/UefiMonitorTest/Graphics.h
+++ b/UefiMonitorTest/Graphics.h
@@ -183,6 +183,13 @@ DrawChar (
IN CHAR16 Char
);
+EFI_STATUS
+GetFontParameters (
+ IN GRAPHICS_CONTEXT *Graphics,
+ OUT UINTN *FontWidth,
+ OUT UINTN *FontHeight
+ );
+
/**
Draws output based on a null-terminated Unicode format string
and a arguments list to the screen