From 15e2f8abf3ceb72922393f490a2337c2c6a6fef4 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Mon, 20 Feb 2023 11:21:35 -0800 Subject: [PATCH] [boot] Stop picking largest video mode For now, using VNC, I want to keep the framebuffer mode small, so I'm commenting out the bootloader's loop to pick the biggest video mode. I'll revisit this as a bootconfig option later. --- src/boot/video.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/boot/video.cpp b/src/boot/video.cpp index 6fd391f..22db794 100644 --- a/src/boot/video.cpp +++ b/src/boot/video.cpp @@ -45,6 +45,7 @@ pick_mode(uefi::boot_services *bs) uint32_t res = info->horizontal_resolution * info->vertical_resolution; int pixmode = static_cast(info->pixel_format); + /* const uint32_t modes = gop->mode->max_mode; for (uint32_t i = 0; i < modes; ++i) { size_t size = 0; @@ -63,6 +64,7 @@ pick_mode(uefi::boot_services *bs) pixmode = new_pixmode; } } + */ screen *s = new screen; s->mode = {