From 8839e4357c7632cb667bc2d6c2e4f02beb53db5b Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 25 Oct 2021 13:49:57 +0900 Subject: [PATCH] multiboot: Correctly pass bits-per-pixel from framebuffer data --- kernel/arch/x86_64/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/x86_64/main.c b/kernel/arch/x86_64/main.c index f70e3a4b..b0f30b71 100644 --- a/kernel/arch/x86_64/main.c +++ b/kernel/arch/x86_64/main.c @@ -389,7 +389,7 @@ void arch_framebuffer_initialize(void) { lfb_resolution_x = mboot_struct->framebuffer_width; lfb_resolution_y = mboot_struct->framebuffer_height; lfb_resolution_s = mboot_struct->framebuffer_pitch; - lfb_resolution_b = 32; + lfb_resolution_b = mboot_struct->framebuffer_bpp; } else { struct MB2_Framebuffer * fb = mboot2_find_tag(mboot_struct, 8); if (fb) {