diff options
Diffstat (limited to 'sys/dev/vcons')
-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; /* |