mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Kernel/Graphics: Assign console to be from VGACompatibleAdapter always
If we create a VGACompatibleAdapter object with a preset framebuffer, Always assign the console so we can use it. This is useful for modesetting done by a Multiboot loader, like GRUB.
This commit is contained in:
parent
58d7eb36ad
commit
7f3080c8f2
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ UNMAP_AFTER_INIT VGACompatibleAdapter::VGACompatibleAdapter(PCI::Address address
|
|||
, m_framebuffer_pitch(framebuffer_pitch)
|
||||
{
|
||||
m_framebuffer_console = Graphics::FramebufferConsole::initialize(framebuffer_address, framebuffer_width, framebuffer_height, framebuffer_pitch);
|
||||
// FIXME: This is a very wrong way to do this...
|
||||
GraphicsManagement::the().m_console = m_framebuffer_console;
|
||||
}
|
||||
|
||||
void VGACompatibleAdapter::enable_consoles()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue