summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/video/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers/video/video.c')
-rw-r--r--payloads/libpayload/drivers/video/video.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/video/video.c b/payloads/libpayload/drivers/video/video.c
index d7fc8de923..61bb02abc0 100644
--- a/payloads/libpayload/drivers/video/video.c
+++ b/payloads/libpayload/drivers/video/video.c
@@ -62,6 +62,16 @@ static int cursorx;
static int cursory;
static unsigned int cursor_enabled = 1;
+void video_get_rows_cols(unsigned int *rows, unsigned int *cols)
+{
+ if (console) {
+ *cols = console->columns;
+ *rows = console->rows;
+ } else {
+ *cols = *rows = 0;
+ }
+}
+
static void video_console_fixup_cursor(void)
{
if (!cursor_enabled)