aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
authorMarvin Borner2019-11-10 22:05:44 +0100
committerMarvin Borner2019-11-10 22:05:44 +0100
commit765559cab48a27be66f40f1b081c79fe32bee8c7 (patch)
tree389bdb54407f622de81636b1358617e5ecdbdddb /src/kernel/graphics
parent7e06dfe06a0f7847eed105bc4f7ccb22df5228fc (diff)
Fixed some strange bugs and reimplemented mode detection
Diffstat (limited to 'src/kernel/graphics')
-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 447c447..a43d486 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");