From 0e94325936030990ac95b9ca90382aa265c95818 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 30 Nov 2019 14:14:59 +0100 Subject: Re-enabled font in non-installed versions --- src/kernel/graphics/vesa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 9563f4f..8dc5929 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -67,12 +67,13 @@ uint16_t *vbe_get_modes() uint16_t *mode_ptr = (uint16_t *) info->video_modes; size_t number_modes = 1; for (uint16_t *p = mode_ptr; *p != 0xFFFF; p++) number_modes++; + serial_write_dec(number_modes); uint16_t *ret = kmalloc(sizeof(uint16_t) * number_modes); for (size_t i = 0; i < number_modes; i++) ret[i] = ((uint16_t *) info->video_modes)[i]; - return mode_ptr; + return ret; } struct vbe_mode_info *vbe_get_mode_info(uint16_t mode) -- cgit v1.2.3