aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
authorMarvin Borner2020-02-01 18:33:20 +0100
committerMarvin Borner2020-02-01 18:33:20 +0100
commit7ec74159de339baf3687bc59f1c18309b23ef36b (patch)
tree0ed85fbd990ae726ca6bea2b2e0e04a978aa83a1 /src/kernel/graphics
parent6135c0e7d56e3b0faf7e942ccbdc1a59f41d7ba6 (diff)
Why did I do that?
Somehow there slipped a hardcoded constant into the vesa driver :/
Diffstat (limited to 'src/kernel/graphics')
-rw-r--r--src/kernel/graphics/vesa.c2
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;