aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vesa.c
diff options
context:
space:
mode:
authorMarvin Borner2019-11-08 23:13:51 +0100
committerMarvin Borner2019-11-08 23:13:51 +0100
commit5f0475e159428e50e58f3772d6a759ff86b7b55a (patch)
treedb2610eb6a6613ecba2958f3277b9ec68ee144d6 /src/kernel/graphics/vesa.c
parentdd8c010755a3044f0832c7e732e1e3cdedb4a2ac (diff)
Began implementation of non-grub bootloader
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r--src/kernel/graphics/vesa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c
index a43d486..447c447 100644
--- a/src/kernel/graphics/vesa.c
+++ b/src/kernel/graphics/vesa.c
@@ -98,7 +98,7 @@ void set_optimal_resolution() {
uint16_t highest = 0;
- for (uint16_t *mode = video_modes; *mode != 0xFFFF; mode++) {
+ /*for (uint16_t *mode = video_modes; *mode != 0xFFFF; mode++) {
struct vbe_mode_info *mode_info = vbe_get_mode_info(*mode);
if (mode_info == 0 || (mode_info->attributes & 0x90) != 0x90 ||
@@ -125,7 +125,7 @@ void set_optimal_resolution() {
vbe_bpl = mode_info->bpp >> 3;
fb = (unsigned char *) mode_info->framebuffer;
}
- }
+ }*/
if (highest == 0) {
serial_write("Mode detection failed!\nTrying common modes...\n");