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:
parent
4815282a5f
commit
fb0ed2ae46
7 changed files with 24 additions and 14 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue