From 765559cab48a27be66f40f1b081c79fe32bee8c7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 10 Nov 2019 22:05:44 +0100 Subject: Fixed some strange bugs and reimplemented mode detection --- 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 447c447..a43d486 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