:: commit c7845ee6d427e3971d90ad618f2e374723e33b7a

Mintsuki <mintsuki@protonmail.com> — 2026-02-07 07:04

parents: 0d3d27e61f

protos/linux_x86: Convert lfb_size to 64 KiB units on BIOS path

diff --git a/common/protos/linux_x86.c b/common/protos/linux_x86.c
index 413ece75..8dd92790 100644
--- a/common/protos/linux_x86.c
+++ b/common/protos/linux_x86.c
@@ -571,6 +571,7 @@ set_textmode:;
 
 #if defined (BIOS)
         screen_info->orig_video_isVGA = VIDEO_TYPE_VLFB;
+        screen_info->lfb_size = DIV_ROUNDUP(screen_info->lfb_size, 65536);
 #elif defined (UEFI)
         screen_info->orig_video_isVGA = VIDEO_TYPE_EFI;
 #endif
tab: 248 wrap: offon