From fdf7de345e42a7cf879e658b4db08ac97311cf08 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 26 Feb 2024 00:11:09 -0500 Subject: kernel: vcons: Add missing PIX_BOUNDS_MAX_* Signed-off-by: Ian Moffett --- sys/dev/vcons/vcons.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/vcons/vcons.c b/sys/dev/vcons/vcons.c index 262e3f7..91ea906 100644 --- a/sys/dev/vcons/vcons.c +++ b/sys/dev/vcons/vcons.c @@ -42,6 +42,9 @@ __KERNEL_META("$Hyra$: kern_vcons.c, Ian Marco Moffett, " #define PIX_CPY_X(scrptr) ((scrptr)->cpy_x * FONT_WIDTH) #define PIX_CPY_Y(scrptr) ((scrptr)->cpy_y * FONT_HEIGHT) +#define PIX_BOUNDS_MAX_X(scrptr) ((scrptr)->fbdev.width - FONT_WIDTH) +#define PIX_BOUNDS_MAX_Y(scrptr) ((scrptr)->fbdev.height - FONT_HEIGHT) + static struct vcons_screen *screen = NULL; /* -- cgit v1.2.3