1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +00:00

Kernel: Enable additional VirtIO displays only on first resolution set

Also, only allocate the amount of memory we actually need for the given
resolution.
This commit is contained in:
Tom 2021-06-26 20:05:37 -06:00 committed by Andreas Kling
parent 8749235046
commit 56cd0f929e
5 changed files with 52 additions and 40 deletions

View file

@ -40,13 +40,9 @@ public:
private:
void enqueue_refresh_timer();
virtual u8* framebuffer_data() override
{
return m_framebuffer_region.unsafe_ptr()->vaddr().as_ptr();
}
virtual u8* framebuffer_data() override;
VirtIOGPUConsole(RefPtr<VirtIOFrameBufferDevice> const&);
WeakPtr<Region> m_framebuffer_region;
RefPtr<VirtIOFrameBufferDevice> m_framebuffer_device;
DirtyRect m_dirty_rect;
};