1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +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

@ -10,8 +10,8 @@
namespace Kernel::Graphics::VirtIOGPU {
FramebufferDevice::FramebufferDevice(GPU& virtio_gpu, ScanoutID scanout)
: BlockDevice(29, GraphicsManagement::the().allocate_minor_device_number())
FramebufferDevice::FramebufferDevice(GraphicsDevice const& adapter, GPU& virtio_gpu, ScanoutID scanout)
: Kernel::FramebufferDevice(adapter, scanout.value())
, m_gpu(virtio_gpu)
, m_scanout(scanout)
{