:: commit 9232247312f3facf39ba59c789796eef94841153

Mintsuki <mintsuki@protonmail.com> — 2026-04-09 08:54

parents: df4c3ecc1b

lib/fb: Do not clear framebuffer on mode set in quiet mode

diff --git a/common/lib/fb.c b/common/lib/fb.c
index 51fc49ae..180da4fd 100644
--- a/common/lib/fb.c
+++ b/common/lib/fb.c
@@ -14,6 +14,10 @@ size_t fb_fbs_count = 0;
 void fb_init(struct fb_info **ret, size_t *_fbs_count,
              uint64_t target_width, uint64_t target_height, uint16_t target_bpp,
              bool preserve_screen) {
+    if (quiet) {
+        preserve_screen = true;
+    }
+
 #if defined (BIOS)
     *ret = ext_mem_alloc(sizeof(struct fb_info));
     if (init_vbe(*ret, target_width, target_height, target_bpp, preserve_screen)) {
tab: 248 wrap: offon