aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
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 5284f7e..43b0799 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 = kmalloc(fb_size); */
- for (uint32_t z = 0; z < fb_size; z += 4096) {
+ for (uint32_t z = 0; z < fb_size; z += PAGE_S) {
paging_map(paging_root_directory, (uint32_t)fb + z, (uint32_t)fb + z);
/* paging_map(paging_root_directory, (uint32_t)cursor_buffer + z, */
/* (uint32_t)cursor_buffer + z); */