diff options
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r-- | src/kernel/graphics/vesa.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |