From 5f0475e159428e50e58f3772d6a759ff86b7b55a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 8 Nov 2019 23:13:51 +0100 Subject: Began implementation of non-grub bootloader --- src/kernel/graphics/vesa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index a43d486..447c447 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -98,7 +98,7 @@ void set_optimal_resolution() { uint16_t highest = 0; - for (uint16_t *mode = video_modes; *mode != 0xFFFF; mode++) { + /*for (uint16_t *mode = video_modes; *mode != 0xFFFF; mode++) { struct vbe_mode_info *mode_info = vbe_get_mode_info(*mode); if (mode_info == 0 || (mode_info->attributes & 0x90) != 0x90 || @@ -125,7 +125,7 @@ void set_optimal_resolution() { vbe_bpl = mode_info->bpp >> 3; fb = (unsigned char *) mode_info->framebuffer; } - } + }*/ if (highest == 0) { serial_write("Mode detection failed!\nTrying common modes...\n"); -- cgit v1.2.3