diff options
author | Marvin Borner | 2020-02-01 18:33:20 +0100 |
---|---|---|
committer | Marvin Borner | 2020-02-01 18:33:20 +0100 |
commit | 7ec74159de339baf3687bc59f1c18309b23ef36b (patch) | |
tree | 0ed85fbd990ae726ca6bea2b2e0e04a978aa83a1 /src | |
parent | 6135c0e7d56e3b0faf7e942ccbdc1a59f41d7ba6 (diff) |
Why did I do that?
Somehow there slipped a hardcoded constant into the vesa driver :/
Diffstat (limited to 'src')
-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; |