1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

Kernel/Graphics: Force VirtIO Framebuffer to inherit FramebufferDevice

The distinction is not justified because a VirtIO Framebuffer device
acts much more like a regular FramebufferDevice than a pure BlockDevice.
This commit is contained in:
Liav A 2021-09-21 09:26:14 +03:00 committed by Idan Horowitz
parent 4815282a5f
commit fb0ed2ae46
7 changed files with 24 additions and 14 deletions

View file

@ -22,7 +22,7 @@ NonnullRefPtr<GraphicsAdapter> GraphicsAdapter::initialize(PCI::DeviceIdentifier
GraphicsAdapter::GraphicsAdapter(PCI::DeviceIdentifier const& device_identifier)
: PCI::Device(device_identifier.address())
{
m_gpu_device = adopt_ref(*new GPU(device_identifier)).leak_ref();
m_gpu_device = adopt_ref(*new GPU(*this, device_identifier)).leak_ref();
m_gpu_device->initialize();
}