diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-26 00:11:09 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-26 00:11:09 -0500 |
commit | fdf7de345e42a7cf879e658b4db08ac97311cf08 (patch) | |
tree | a25b639c70ab18753382a1344bfad8d7fe6137b9 /sys | |
parent | 156aad061f5054829c94c233208c09b356efd9c6 (diff) |
kernel: vcons: Add missing PIX_BOUNDS_MAX_*
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/vcons/vcons.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; /* |