Kernel: Add fast fill method to framebuffer device

This makes `clear` much faster when running without kvm!
This commit is contained in:
2025-07-01 13:53:19 +03:00
parent c2d09b64ca
commit fb7e9719a1
3 changed files with 10 additions and 3 deletions

View File

@@ -79,9 +79,7 @@ namespace Kernel
for (auto& pixel : m_cursor_data)
pixel = color.rgb;
for (uint32_t y = 0; y < m_framebuffer_device->height(); y++)
for (uint32_t x = 0; x < m_framebuffer_device->width(); x++)
m_framebuffer_device->set_pixel(x, y, color.rgb);
m_framebuffer_device->fill(color.rgb);
m_framebuffer_device->sync_pixels_full();
if (m_cursor_shown)