aboutsummaryrefslogtreecommitdiffstats
path: root/UefiMonitorTest/Graphics.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-04-28 02:31:04 +0300
committerJoursoir <chat@joursoir.net>2022-04-28 02:32:03 +0300
commit0275f6563689be0bc0b2935c0977424809bfeded (patch)
treebff9b4f042910e010e9d809615b0c8b53a000802 /UefiMonitorTest/Graphics.c
parent1d7319cdabef8ed161b30ea671e2cf308a995f42 (diff)
downloadumt-0275f6563689be0bc0b2935c0977424809bfeded.tar.gz
umt-0275f6563689be0bc0b2935c0977424809bfeded.tar.bz2
umt-0275f6563689be0bc0b2935c0977424809bfeded.zip
graphics: add the getting font parameters routine
Diffstat (limited to 'UefiMonitorTest/Graphics.c')
-rw-r--r--UefiMonitorTest/Graphics.c16
1 files changed, 16 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