aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vesa.c
diff options
context:
space:
mode:
authorMarvin Borner2019-11-30 14:14:59 +0100
committerMarvin Borner2019-11-30 14:14:59 +0100
commit0e94325936030990ac95b9ca90382aa265c95818 (patch)
treeb83d90ecce9746e4e44a21695e18385afae6ef15 /src/kernel/graphics/vesa.c
parent13991f3985af026f8d645d9f5d2afed42c8a5435 (diff)
Re-enabled font in non-installed versions
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r--src/kernel/graphics/vesa.c3
1 files changed, 2 insertions, 1 deletions
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)