From 7ec74159de339baf3687bc59f1c18309b23ef36b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 1 Feb 2020 18:33:20 +0100 Subject: Why did I do that? Somehow there slipped a hardcoded constant into the vesa driver :/ --- src/kernel/graphics/vesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/graphics/vesa.c') diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 576fc18..eaca94a 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -184,7 +184,7 @@ void set_optimal_resolution() uint32_t fb_size = vbe_width * vbe_height * vbe_bpl; cursor_buffer = (unsigned char *) kmalloc(fb_size); uint32_t j = (uint32_t) fb; - while ((unsigned char *) j < fb + (vbe_width * vbe_height * 4)) { + while ((unsigned char *) j < fb + fb_size) { paging_set_frame(j); page_t *page = paging_get_page(j, 1, current_directory); page->present = 1; -- cgit v1.2.3