mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Use Multiboot macros instead of magic constants (#2090)
MUTLIBOOT_FRAMEBUFFER_TYPE_{RGB,EGA_TEXT} are defined in the Multiboot.h header. Use those definitions instead of hard-coding 1 and 2.
This commit is contained in:
parent
f22c973ba3
commit
f4e6c4c6f0
Notes:
sideshowbarker
2024-07-19 06:59:56 +09:00
Author: https://github.com/lanza 🔰 Commit: https://github.com/SerenityOS/serenity/commit/f4e6c4c6f00 Pull-request: https://github.com/SerenityOS/serenity/pull/2090
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ void init_stage2()
|
|||
if (bxvga_found) {
|
||||
new BXVGADevice;
|
||||
} else {
|
||||
if (multiboot_info_ptr->framebuffer_type == 1 || multiboot_info_ptr->framebuffer_type == 2) {
|
||||
if (multiboot_info_ptr->framebuffer_type == MULTIBOOT_FRAMEBUFFER_TYPE_RGB || multiboot_info_ptr->framebuffer_type == MULTIBOOT_FRAMEBUFFER_TYPE_EGA_TEXT) {
|
||||
new MBVGADevice(
|
||||
PhysicalAddress((u32)(multiboot_info_ptr->framebuffer_addr)),
|
||||
multiboot_info_ptr->framebuffer_pitch,
|
||||
|
|
Loading…
Reference in a new issue