mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel/Graphics: Be more consistent about arguments passing
This fixes a bug that was reported on this discord server by @ElectrodeYT - due to the confusion of passing arguments in different orders, we messed up and triggered a page fault due to faulty sizes.
This commit is contained in:
parent
ca9101e5f0
commit
02b73cb93d
Notes:
sideshowbarker
2024-07-18 17:58:27 +09:00
Author: https://github.com/supercomputer7
Commit: 02b73cb93d
Pull-request: https://github.com/SerenityOS/serenity/pull/7198
8 changed files with 18 additions and 18 deletions
|
@ -66,9 +66,9 @@ UNMAP_AFTER_INIT RefPtr<GraphicsDevice> GraphicsManagement::determine_graphics_d
|
|||
dmesgln("Graphics: Using a preset resolution from the bootloader");
|
||||
return VGACompatibleAdapter::initialize_with_preset_resolution(address,
|
||||
PhysicalAddress((u32)(multiboot_info_ptr->framebuffer_addr)),
|
||||
multiboot_info_ptr->framebuffer_pitch,
|
||||
multiboot_info_ptr->framebuffer_width,
|
||||
multiboot_info_ptr->framebuffer_height);
|
||||
multiboot_info_ptr->framebuffer_height,
|
||||
multiboot_info_ptr->framebuffer_pitch);
|
||||
}
|
||||
return VGACompatibleAdapter::initialize(address);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue