1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

Kernel/Graphics: Implement basic cursor for FramebufferConsole

This commit is contained in:
Liav A 2022-05-06 03:19:27 +03:00 committed by Linus Groh
parent 00a0b1bd14
commit 0d784de3a6
2 changed files with 19 additions and 1 deletions

View file

@ -43,6 +43,7 @@ protected:
: Console(width, height)
, m_pitch(pitch)
{
m_cursor_overriden_pixels.fill(0);
}
virtual u8* framebuffer_data() = 0;
size_t framebuffer_pitch() const { return m_pitch; }
@ -51,6 +52,8 @@ protected:
size_t const m_pixels_per_column { 8 };
size_t const m_pixels_per_row { 16 };
Array<u32, 8> m_cursor_overriden_pixels;
size_t m_pitch;
};