From cd49ee509344a61f47baa037453cf2700394d0b8 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Sat, 25 May 2019 11:39:42 +0800 Subject: [PATCH] Fix x86_64 fb depth --- kernel/src/arch/x86_64/board/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/arch/x86_64/board/mod.rs b/kernel/src/arch/x86_64/board/mod.rs index a31be5f..d99c32c 100755 --- a/kernel/src/arch/x86_64/board/mod.rs +++ b/kernel/src/arch/x86_64/board/mod.rs @@ -46,7 +46,7 @@ pub fn probe_fb_info(_width: u32, _height: u32, _depth: u32) -> FramebufferResul depth: depth, pitch: pitch, // TOKNOW bus_addr: framebuffer as u32, - screen_size: width * height * 3, + screen_size: width * height * (depth / 8), }; // assume BGRA8888 for now Ok((